Uploaded image for project: 'JIRA Components'
  1. JIRA Components
  2. JIRA-47

NPE when trying do query issues in Jira via XWiki-Plugin "Jira Macro"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 8.6.3
    • Macro
    • None
    • Unknown

    Description

      We use the "Jira Macro" very often on several XWiki-Pages with queries on several Jira-Projects and so far no issues.

      But now we created a new project in Jira with two different workflows und several custom fields and you can use the project itself via Jira with no issues BUT when we try to query issues and display them in a XWiki-Page each and every time a NullPointerException is shown:
       

      java.lang.NullPointerException
      at org.xwiki.contrib.jira.macro.internal.displayer.field.KeyJIRAFieldDisplayer.displayField(KeyJIRAFieldDisplayer.java:63)
      at org.xwiki.contrib.jira.macro.internal.displayer.TableJIRADisplayer.display(TableJIRADisplayer.java:80)
      at org.xwiki.contrib.jira.macro.internal.JIRAMacro.execute(JIRAMacro.java:87)
      at org.xwiki.contrib.jira.config.internal.AsyncJIRAMacro.executeCodeMacro(AsyncJIRAMacro.java:99)
      at org.xwiki.contrib.jira.config.internal.JIRABlockAsyncRenderer.execute(JIRABlockAsyncRenderer.java:121)
      at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
      at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
      at org.xwiki.rendering.async.internal.AsyncRendererJob.runInternal(AsyncRendererJob.java:109)
      at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
      at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:829)
      

      The corresponding query in the xWiki page is

      {{jira id="jira" source="jql"}}project = "ISCM"{{/jira}}
      

      You even get the NPE in a XWiki-Page when you try to reference one or several issues via the issue key (without a jql query) like the following:

      {{jira id="jira"}}ISCM-3{{/jira}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            abo abo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: