Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-25050

NullPointerException in loading data due to orphaned sub-task items issue

    XMLWordPrintable

Details

    Description

      Summary

      For some specific scenarios (orphaned sub-task items) Jira Portfolio blocks the update calls for affected items:

      • "Delete" (or any other like "Move" or "Convert") item ends up with an error:
      java.lang.NullPointerException
      	at com.atlassian.rm.teams.customfields.team.IssueTeamService.getTeamForNonSubTask(IssueTeamService.java:50) [?:?]
      	at com.atlassian.rm.teams.customfields.team.IssueTeamService.getTeam(IssueTeamService.java:35) [?:?]
      	at com.atlassian.rm.teams.customfields.team.TeamCustomFieldTypeHelper.getTeam(TeamCustomFieldTypeHelper.java:117) [?:?]
      

      At the same time the JIRA lexorank engine is handling that issue with a warning only:

      NodeReindexServiceThread:thread-1 WARN [greenhopper.customfield.sprint.SprintHistoryEntryFactory] Unable to fetch parent issue for RMBRITS-317
      

      Environment

      • JIRA Software: 7.2.10
      • Portfolio for JIRA: 2.6.1

      Steps to Reproduce

      There's no easy step to reproduce. The orphaned sub-task item is required (that may be related to unidentified JIRA bug).

      Expected Results

      "Delete" action should be successful (even with a warning).

      Actual Results

      Any UI update is failing with NPE for the specific item.

      Workaround

      Quick fix : 

      This issue could be solved by running the "integrity checker".

      Trouble shooting : 

      https://confluence.atlassian.com/jirakb/troubleshoot-a-reindex-failure-in-jira-server-429917142.html

      Attachments

        Issue Links

          Activity

            People

              1470b7239af3 Drew Zhu
              tdudzisz Tomasz Dudzisz (Inactive)
              Votes:
              18 Vote for this issue
              Watchers:
              35 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: