java.lang.NullPointerException

Atlassian JIRA | Michael Tokar | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    JIRA appears to not validate workflow XML when importing it. This means that you could import a workflow which refers to statuses which do not exist in the system. If a project which uses such a workflow is shown on a board, then when a user attempts to configure the board, they will see an Internal Server Error with the following stack trace: {code} 2013-01-13 17:57:05,450 http-bio-9080-exec-2521 ERROR mtokar 1077x545487x3 1mggf6n 59.167.133.100,172.16.3.10 /rest/greenhopper/1.0/rapidviewconfig/editmodel.json [common.error.jer sey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry(ColumnEditHelper.java:295) at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnStatusesModel(ColumnEditHelper.java:283) at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnEditModel(ColumnEditHelper.java:178) at com.atlassian.greenhopper.web.rapid.view.RapidViewEditHelper.getEditModel(RapidViewEditHelper.java:125) at com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$6.call(RapidViewEditResource.java:182) at com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$6.call(RapidViewEditResource.java:175) {code} Although JIRA should fix this so that validation occurs, we can also add a null check to ensure that such problematic workflows do not break GreenHopper. This should not be a common occurrence.

    Atlassian JIRA | 4 years ago | Michael Tokar
    java.lang.NullPointerException
  2. 0

    JIRA appears to not validate workflow XML when importing it. This means that you could import a workflow which refers to statuses which do not exist in the system. If a project which uses such a workflow is shown on a board, then when a user attempts to configure the board, they will see an Internal Server Error with the following stack trace: {code} 2013-01-13 17:57:05,450 http-bio-9080-exec-2521 ERROR mtokar 1077x545487x3 1mggf6n 59.167.133.100,172.16.3.10 /rest/greenhopper/1.0/rapidviewconfig/editmodel.json [common.error.jer sey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry(ColumnEditHelper.java:295) at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnStatusesModel(ColumnEditHelper.java:283) at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnEditModel(ColumnEditHelper.java:178) at com.atlassian.greenhopper.web.rapid.view.RapidViewEditHelper.getEditModel(RapidViewEditHelper.java:125) at com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$6.call(RapidViewEditResource.java:182) at com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$6.call(RapidViewEditResource.java:175) {code} Although JIRA should fix this so that validation occurs, we can also add a null check to ensure that such problematic workflows do not break GreenHopper. This should not be a common occurrence.

    Atlassian JIRA | 4 years ago | Michael Tokar
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry()
    2. com.atlassian.greenhopper
      RapidViewEditResource$6.call
      1. com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.asStatusEntry(ColumnEditHelper.java:295)
      2. com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnStatusesModel(ColumnEditHelper.java:283)
      3. com.atlassian.greenhopper.web.rapid.view.ColumnEditHelper.buildColumnEditModel(ColumnEditHelper.java:178)
      4. com.atlassian.greenhopper.web.rapid.view.RapidViewEditHelper.getEditModel(RapidViewEditHelper.java:125)
      5. com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$6.call(RapidViewEditResource.java:182)
      6. com.atlassian.greenhopper.web.rapid.view.RapidViewEditResource$6.call(RapidViewEditResource.java:175)
      6 frames