NPE handling should be added to NotificationRecipientHelper

XMLWordPrintable

    • 4
    • 20

      Problem Definition

      Editing only "Comment" on issue causes NullPointerException warning in atlassian-jira.log

      2020-02-26 01:57:36,996+0000 Jira-INFORM-Thread-1 WARN admin 117x159x1 13i7qud 172.24.0.1,172.24.0.15 /secure/QuickEditIssue.jspa [c.a.j.p.m.service.helper.NotificationRecipientHelper] Cannot get change items
      java.lang.NullPointerException
      	at com.atlassian.jira.plugin.mobile.service.helper.NotificationRecipientHelper.isSupportedIssueUpdateEvent(NotificationRecipientHelper.java:135)
      	at com.atlassian.jira.plugin.mobile.service.helper.NotificationRecipientHelper.isSupportedEvent(NotificationRecipientHelper.java:127)
      	at com.atlassian.jira.plugin.mobile.service.helper.NotificationRecipientHelper.isValidIssueEvent(NotificationRecipientHelper.java:113)
      	....
      

      Comment itself is saved but such exception should be handled properly.

      Environment

      Above log is observed in Jira Software 8.7.1.

      Suggested Solution

      Add an exception handling on NotificationRecipientHelper.

              Assignee:
              Unassigned
              Reporter:
              Nobuyuki Mukai
              Votes:
              54 Vote for this issue
              Watchers:
              42 Start watching this issue

                Created:
                Updated: