Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70702

NPE handling should be added to NotificationRecipientHelper

XMLWordPrintable

    • 4
    • 20
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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.

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

                Created:
                Updated: