Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-59497

Null Pointer Exception after checking/unchecking an inline task on a page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 7.4.14, 7.13.3, 7.15.0
    • 6.6.17, 6.15.10, 7.1.2, 7.2.2, 7.3.1, 7.4.0, 7.5.2, 7.8.0, 7.8.3, 7.13.2
    • Content - Tasks

      Issue Summary

      We have observed Null Pointer Exception in the logs after checking and unchecking an inline task on a Confluence page

      Steps to Reproduce

      1. Start a new confluence instance
      2. Create a new page
      3. Add a task, check it, assign it to a user (e.g. @admin)
      4. Publish the new page
      5. On the resulting page view: uncheck the new task again

      Expected Results

      Confluence processes the unchecking without error.

      Actual Results

      Tasks checking and unchecking is not properly processed and tasks appear to be checked and unchecked at random, without any user input.
      The below Null  pointer exception is thrown in the Atlassian-confluence.log file:

      2020-02-18 12:54:35,239 ERROR [http-nio-6731-exec-5] [atlassian.confluence.event.ConfluenceEventDispatcher] run There was an exception thrown trying to dispatch event [ConfluenceTaskUpdateEvent{user=ConfluenceUserImpl{name='admin', key=2c9db0e37044255101704425d5ae0000}, task=Task [globalId=0, id=1, contentId=950279, taskStatus=UNCHECKED, title=Test Task admin http://localhost:6731/c731/display/~admin, description=, body=<span class="placeholder-inline-tasks">Test Task <ac:link><ri:user ri:userkey="2c9db0e37044255101704425d5ae0000" /></ac:link> </span>, creator=null, assignee=admin, createDate=null, dueDate=null, updateDate=null, completeUser=null, completeDate=null]}] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener.onTaskUpdatedEvent(com.atlassian.confluence.plugins.tasklist.event.ConfluenceTaskUpdateEvent), listener=com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener@2c7e7} (timed)]
       -- referer: http://localhost:6731/c731/display/AAM/Task+test | url: /c731/rest/inlinetasks/1/task/950279/1/ | traceId: 79d4595f5b1f42d1 | userName: admin
      java.lang.RuntimeException: Listener: com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener event: com.atlassian.confluence.plugins.tasklist.event.ConfluenceTaskUpdateEvent
      	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:52)
      ....
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.NullPointerException
      	at com.atlassian.mywork.model.TaskBuilder.<init>(TaskBuilder.java:39)
      	at com.atlassian.mywork.host.service.LocalTaskServiceImpl.lambda$markIncomplete$1(LocalTaskServiceImpl.java:90)
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

              qpham@atlassian.com Quan Pham
              aansari@atlassian.com Aamir (Inactive)
              Votes:
              126 Vote for this issue
              Watchers:
              117 Start watching this issue

                Created:
                Updated:
                Resolved: