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

NullPointerException when trying to edit a comment that has been deleted

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. add a comment to a page
      2. stay on the page and have someone else remove the comment (or do it in a different tab I guess)
      3. click 'edit' on the comment

      Result:

      java.lang.NullPointerException
          at com.atlassian.confluence.content.service.comment.EditCommentFromEditorCommand.getPage(EditCommentFromEditorCommand.java:59)
      
      Stack Trace:[hide]
      
      java.lang.NullPointerException
      	at com.atlassian.confluence.content.service.comment.EditCommentFromEditorCommand.getPage(EditCommentFromEditorCommand.java:59)
      	at com.atlassian.confluence.content.service.comment.EditCommentFromEditorCommand.validateInternal(EditCommentFromEditorCommand.java:35)
      	at com.atlassian.confluence.core.service.AbstractServiceCommand$ServiceCommandState$4.validate(AbstractServiceCommand.java:198)
      	at com.atlassian.confluence.core.service.AbstractServiceCommand$ServiceCommandState$6.validate(AbstractServiceCommand.java:259)
      	at com.atlassian.confluence.core.service.AbstractServiceCommand.isValid(AbstractServiceCommand.java:42)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy1823.isValid(Unknown Source)
      	at com.atlassian.confluence.pages.actions.EditCommentAction.validate(EditCommentAction.java:33)
      

      Attachments

        Activity

          People

            akdominguez Katrina Walser (Inactive)
            mheemskerk Michael Heemskerk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: