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

NullPointer exception when trying the View Issues links from the Project statistics page

    XMLWordPrintable

Details

    Description

      Summary

      Upon trying to click on the View Issues link in the project statistics page, JIRA throws a null pointer exception and the issues fail to load.
      This happens with any kind of project, Software or Business projects.

      Environment

      • JIRA 7.12.0 is installed and a project with at least 1 issue is created.

      Steps to Reproduce

      1. Install JIRA 7.12.0
      2. Create a business project management project.
      3. Create 1 issue under that project and don't close it.
      4. Navigate to the project summary page (click on the project name to go to the summary page)
      5. switch the view from Activity (default) to Statistics
      6. On the statistics page, click on View Issues under Unresolved: By Assignee.

      Expected Results

      JIRA will open the issue navigator page and will display the issues unresolved by Assignee

      Actual Results

      JIRA fails to display the page and a 500 error is produced to the customer:

      2018-09-05 11:44:13,580 http-nio-17120-exec-21 ERROR sherif 704x1475x1 aqz5j1 0:0:0:0:0:0:0:1 /issues/ [o.a.c.c.C.[.[localhost].[/jira7120].[action]] Servlet.service() for servlet [action] threw exception
      java.lang.NullPointerException
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.JqlHelper.lambda$static$11(JqlHelper.java:88)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.visitors.SingleValueChecker.visit(SingleValueChecker.java:10)
              at com.atlassian.query.operand.SingleValueOperand.accept(SingleValueOperand.java:61)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.checker.ClauseChecker.lambda$expectOperand$4(ClauseChecker.java:52)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.checker.ClauseChecker.lambda$and$8(ClauseChecker.java:70)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.checker.ClauseChecker.lambda$and$8(ClauseChecker.java:70)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.checker.ClauseChecker.lambda$build$9(ClauseChecker.java:95)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.JqlHelper$3.lambda$visit$0(JqlHelper.java:198)
              at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
              at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
              at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
              at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
              at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.JqlHelper$3.visit(JqlHelper.java:198)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.JqlHelper$3.visit(JqlHelper.java:194)
              at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:143)
              at com.atlassian.jira.plugin.devstatus.issuenavigator.searcher.JqlHelper$3.lambda$doVisit$1(JqlHelper.java:210)
              at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
              at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      

      Notes

      • If we change the project id number to the Project key, the URL works and issue navigator is shown.
      • This also occurs when trying to drill down on issues from the pie chart available on Dashboards.

      Workaround

      Need to create a custom set of filters that will return similar results and avoid using the links in the project statistics page.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sabdelfattah Sherif Abdelfattah (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: