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

JIRA 4.4 introduced a possible NullPointerException in the DefaultWatcherManager

    XMLWordPrintable

Details

    Description

      The following line in the DefaultWatcherManager may throw a NullPointerException due to Autoboxing in JIRA 4.4:

      if (issue.getLong("watches") == 0)
      

      Normally the "watches" field should be populated in the database, however for historical reasons it could well be null in which case this line will throw a NPE.

      Attachments

        Activity

          People

            edalgliesh Eric Dalgliesh
            andreask@atlassian.com Andreas Knecht (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: