Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29245

Fix NPE in comment service notification

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF30, 11.2, 2021.0
    • Component/s: Comments

      Description

      When using comments on a workflow, the comment service throws an NPE because the dc:contributors property is null.

      2020-06-11T05:05:50,881 ERROR [WebEngineExceptionMapper] java.lang.NullPointerException
      java.lang.NullPointerException: null
      	at org.nuxeo.ecm.platform.comment.impl.AbstractCommentManager.getAuthor(AbstractCommentManager.java:207) ~[nuxeo-platform-comment-10.10-HF26.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.handleNotificationAutoSubscriptions(TreeCommentManager.java:495) ~[nuxeo-platform-comment-10.10-HF26.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.handleNotificationAutoSubscriptions(TreeCommentManager.java:485) ~[nuxeo-platform-comment-10.10-HF26.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.lambda$createComment$2(TreeCommentManager.java:171) ~[nuxeo-platform-comment-10.10-HF26.jar:?]
      	at org.nuxeo.ecm.core.api.CoreInstance$2.run(CoreInstance.java:206) ~[nuxeo-core-api-10.10-HF27.jar:?]
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:119) ~[nuxeo-core-api-10.10-HF27.jar:?]
      	at org.nuxeo.ecm.core.api.CoreInstance.doPrivileged(CoreInstance.java:208) ~[nuxeo-core-api-10.10-HF27.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.TreeCommentManager.createComment(TreeCommentManager.java:155) ~[nuxeo-platform-comment-10.10-HF26.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.comment.CommentAdapter.createComment(CommentAdapter.java:59) ~[nuxeo-platform-comment-rest-api-10.10-HF26.jar:?]
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: