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

    • 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

            [CONFSERVER-59497] Null Pointer Exception after checking/unchecking an inline task on a page

            Cees Bos added a comment -

            @Quan, we still experience this issue while we are on Confluence Cloud.

            According to this support page (https://confluence.atlassian.com/confkb/how-do-i-know-what-version-of-confluence-is-running-179441565.html) we should be on the 'latest' version.

            How do we know which version we use on Confluence Cloud and if this problem is fixed for us as well?

            Cees Bos added a comment - @Quan, we still experience this issue while we are on Confluence Cloud. According to this support page ( https://confluence.atlassian.com/confkb/how-do-i-know-what-version-of-confluence-is-running-179441565.html) we should be on the 'latest' version. How do we know which version we use on Confluence Cloud and if this problem is fixed for us as well?

            brage added a comment -

            Abit unsure if this is fixed. I still get task that i check (outside of edit mode) to not be saved

            brage added a comment - Abit unsure if this is fixed. I still get task that i check (outside of edit mode) to not be saved

            Quan Pham added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.4.15
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Quan Pham added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.4.15 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Still experiencing this issue in Confluence Data Center 7.13.3

            Kemal Tuncelli added a comment - Still experiencing this issue in Confluence Data Center 7.13.3

            Carlin added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.13.3
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Carlin added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.13.3 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Carlin added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 7.4.14
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Carlin added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.4.14 Upgrade now or check out the Release Notes to see what other issues are resolved.

            Please provide a fix for LTS, this is major issue that affects a lot of people !!!

            Gaël NEUEZ added a comment - Please provide a fix for LTS, this is major issue that affects a lot of people !!!

            Is it planned to fix it in version 7.13, the latest LTS available?

            Licencias Corporativo added a comment - Is it planned to fix it in version 7.13, the latest LTS available?

            A fix for this issue is available to Server and Data Center customers in Confluence 7.15 Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.15 Upgrade now or check out the Release Notes to see what other issues are resolved.

            From our point of view, a backport to the LTS version 7.13. (which is used by most major customers) would be the least you could expect as a customer.
            thanks & regards, Marco

            Marco Leist added a comment - From our point of view, a backport to the LTS version 7.13. (which is used by most major customers) would be the least you could expect as a customer. thanks & regards, Marco

              qpham@atlassian.com Quan Pham
              aansari@atlassian.com Aamir (Inactive)
              Affected customers:
              126 This affects my team
              Watchers:
              117 Start watching this issue

                Created:
                Updated:
                Resolved: