NullPointerException while linking issues
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 clicking on the Link button in a issue, it throws a NullPointerException.
The following appears in the atlassian-jira.log
:
1
2
2012-11-22 11:42:42,789 http-8090-3 ERROR admin 702x78x1 gwdb49 127.0.0.1 /secure/LinkJiraIssue!default.jspa [velocity] Exception in macro #issueLinkHeader at templates/dialog/linkjiraissue.vm[line 13, column 5]
2012-11-22 11:42:42,789 http-8090-3 ERROR admin 702x78x1 gwdb49 127.0.0.1 /secure/LinkJiraIssue!default.jspa [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException
Cause
There is one or more Link Types with Null value for either Outward Description or Inward Description.
Diagnose
Execute this query to identify any Null value:
1
select * from issuelinktype where inward is null or outward is null;
If it returns any result, then follow the steps listed at the Resolution section.
⚠️ If the query does not return any result, then the root cause might be different and the resolution section from this KB article does not apply. In such case, please reach out to Atlassian Support via this link for assistance.
Resolution
Navigate to Administration > System > Issue Features > Issue Linking
Ensure that all descriptions to all Link Type are filled.
Was this helpful?