# NullPointerException while completing task

**URL:** <https://forum.flowable.org/t/nullpointerexception-while-completing-task/6261>\
**Category:** Flowable Engine\
**Created:** [June 22, 2020, 12:31pm UTC](https://forum.flowable.org/t/nullpointerexception-while-completing-task/6261 "2020-06-22T12:31:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seasonlai](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/seasonlai/32/1852_2.png) [@seasonlai](https://forum.flowable.org/u/seasonlai)\
**Post date:** [June 22, 2020, 12:31pm UTC](https://forum.flowable.org/t/nullpointerexception-while-completing-task/6261/1 "2020-06-22T12:31:47Z")

</div>

Hi team,  
java.lang.NullPointerException: null  
at org.flowable.engine.impl.agenda.EndExecutionOperation.handleRegularExecution(EndExecutionOperation.java:198)  
at org.flowable.engine.impl.agenda.EndExecutionOperation.run(EndExecutionOperation.java:80)  
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:88)  
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)  
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)  
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)  
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)  
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:72)  
at org.flowable.common.spring.SpringTransactionInterceptor.lambda$execute$0(SpringTransactionInterceptor.java:56)  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)  
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:56)  
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)  
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)  
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)  
at org.flowable.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:208)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/1/16b2e948a7a7d592459fa1f23bd7945746fe1822.png)

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [June 28, 2020, 9:41am UTC](https://forum.flowable.org/t/nullpointerexception-while-completing-task/6261/2 "2020-06-28T09:41:37Z")

</div>

Can you share your process or unit test and steps how to reproduce this?
