NullPointerException when Deleting an Issue Type
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When trying to delete an issue type, the issue type cannot be removed. The following stack trace will appear in the log:
1
2
3
4
5
6
7
8
9
10
11
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:896)
at com.atlassian.jira.issue.fields.screen.DefaultFieldScreenSchemeManager.getFieldScreenScheme(DefaultFieldScreenSchemeManager.java:61)
at com.atlassian.jira.issue.fields.screen.issuetype.DefaultIssueTypeScreenSchemeManager.buildIssueTypeScreenSchemeEntity(DefaultIssueTypeScreenSchemeManager.java:165)
at com.atlassian.jira.issue.fields.screen.issuetype.MultipleIssueTypeScreenSchemeManager.getIssueTypeScreenSchemeEntities(MultipleIssueTypeScreenSchemeManager.java:39)
at com.atlassian.jira.issue.fields.screen.issuetype.IssueTypeScreenSchemeImpl.getInternalEntities(IssueTypeScreenSchemeImpl.java:171)
at com.atlassian.jira.issue.fields.screen.issuetype.IssueTypeScreenSchemeImpl.containsEntity(IssueTypeScreenSchemeImpl.java:153)
at com.atlassian.jira.web.action.admin.issuetypes.DeleteIssueType.doExecute(DeleteIssueType.java:172)
...
Cause
The problem is due to an issue type screen scheme associated with no issue types.
Resolution
Delete the problematic issue type screen scheme. Then it will be possible to delete issue types.
Was this helpful?