Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-54021

Stack Trace Generated When Trying to View Drafts

    XMLWordPrintable

Details

    Description

      Summary

      When attempting to view Drafts previously created, a NPE Stack Trace is generated.

      Environment

      • Confluence 6.0.0-OD-2016.12.1

      Steps to Reproduce

      1. Sign in to Confluence
      2. Click on your profile picture in the top right corner of the menu bar.
      3. Choose Drafts

      Expected Results

      A list of draft pages are shown

      Actual Results

      Stack trace is generated on the web console; same error is presented in JIRA Logs:

      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getResumableDraftsBySpace' in class com.atlassian.confluence.user.actions.ViewMyDraftsAction threw exception java.lang.NullPointerException at /users/viewmydrafts.vm[line 118, column 30]
          at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)
      caused by: java.lang.NullPointerException
          at com.atlassian.confluence.pages.DraftsTransitionHelper.getSpaceKey(DraftsTransitionHelper.java:96)
      ...
      Caused by: java.lang.NullPointerException
      

      Notes

      It appears to only affect users who have existing drafts.
      Attempted to repro with a Brand New User; created a draft and was able to view the drafts page without issues

      Workaround

      No workaround at this time

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scranford Shawn C
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: