NullPointerException at Issue creation

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 create an issue, the following error appears on screen:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 java.lang.NullPointerException at com.atlassian.jira.issue.comments.DefaultCommentPermissionManager.hasBrowsePermission(DefaultCommentPermissionManager.java:48) at com.atlassian.jira.issue.comments.DefaultCommentPermissionManager.hasBrowsePermission(DefaultCommentPermissionManager.java:64) at sun.reflect.GeneratedMethodAccessor710.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy161.hasBrowsePermission(Unknown Source) at sun.reflect.GeneratedMethodAccessor710.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy161.hasBrowsePermission(Unknown Source) at com.capitalcityconsultants.jira.plugins.customfields.LastCommentDAO.getLastComment(LastCommentDAO.java:110) at com.capitalcityconsultants.jira.plugins.customfields.LastCommentCFTImpl.getComment(LastCommentCFTImpl.java:120) at com.capitalcityconsultants.jira.plugins.customfields.LastCommentCFTImpl.getValueFromIssue(LastCommentCFTImpl.java:207) at com.capitalcityconsultants.jira.plugins.customfields.LastCommentCFTImpl.getWikiValueConvertedToText(LastCommentCFTImpl.java:298) at com.capitalcityconsultants.jira.plugins.customfields.LastCommentCFTImpl.getVelocityParameters(LastCommentCFTImpl.java:261) at com.atlassian.jira.issue.customfields.CustomFieldUtils.buildParams(CustomFieldUtils.java:385) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getEditHtml(CustomFieldTypeModuleDescriptorImpl.java:184) at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(CustomFieldImpl.java:1012) at com.atlassian.jira.issue.fields.CustomFieldImpl.getCreateHtml(CustomFieldImpl.java:996) at com.atlassian.jira.issue.fields.screen.AbstractFieldScreenLayoutItem.getCreateHtml(AbstractFieldScreenLayoutItem.java:90) at com.atlassian.jira.issue.fields.screen.FieldScreenRenderLayoutItemImpl.getCreateHtml(FieldScreenRenderLayoutItemImpl.java:50) at com.atlassian.jira.issue.fields.rest.FieldHtmlFactoryImpl.getCreateFields(FieldHtmlFactoryImpl.java:96) at sun.reflect.GeneratedMethodAccessor1282.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) (...) at java.lang.Thread.run(Unknown Source)

Cause

The CCC Last Comment plugin is breaking the Issue creation in JIRA.

This seems to be fixed, but the version containing the fix is not yet released (see LCCF-36).

Resolution

There are two options to solve this problem

  1. Disable the CCC Last Comment plugin.

  2. Remove all of the plugin's custom fields from the Create Issue screen triggering the error.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.