Project: jirasoftware
Issue JSW-4679: NullPointerException occurs when editing issue - related to 'GreenHopper Released Version History' field
When attempting to edit an issue in JIRA the edit fails when user clicks the 'update' button, it throws a java.lang.NullPointerException at the top of the edit issue window. If you check the logs the following error appears: {noformat} @400000004f45c7530fe9a96c 2012-02-23 01:57:45,265 TP-Processor10 ERROR sysadmin 117x11680x1 evyd4p 59.167.133.99,207.223.247.46 /secure/QuickEditIssue.jspa [jira.bc.issue.DefaultIssueService] Exception occurred editing issue: java.lang.NullPointerException @400000004f45c7530fe9b13c java.lang.NullPointerException @400000004f45c7530fe9b524 at java.util.AbstractCollection.addAll(AbstractCollection.java:303) @400000004f45c7530fe9b524 at com.pyxis.greenhopper.jira.customfields.ReleasedVersionHistoryCFType.updateValue(ReleasedVersionHistoryCFType.java:68) @400000004f45c7530fed04cc at com.pyxis.greenhopper.jira.customfields.ReleasedVersionHistoryCFType.updateValue(ReleasedVersionHistoryCFType.java:25) @400000004f45c7530fed08b4 at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:405) @400000004f45c7530fed08b4 at com.atlassian.jira.issue.fields.CustomFieldImpl.updateValue(CustomFieldImpl.java:366) @400000004f45c7530fed146c at com.atlassian.jira.issue.managers.DefaultIssueManager.updateFieldValues(DefaultIssueManager.java:589) @400000004f45c7530fed146c at com.atlassian.jira.issue.managers.DefaultIssueManager.updateIssue(DefaultIssueManager.java:554) @400000004f45c7530fed1854 at com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:272) @400000004f45c7530fed27f4 at com.atlassian.jira.bc.issue.DefaultIssueService.update(DefaultIssueService.java:246) @400000004f45c7530fed2bdc at sun.reflect.GeneratedMethodAccessor1929.invoke(Unknown Source) @400000004f45c7530fed2bdc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004f45c7530fed2fc4 at java.lang.reflect.Method.invoke(Method.java:597) @400000004f45c7530fed33ac at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.java:181) @400000004f45c7530fed3794 at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211) @400000004f45c7530fed3b7c at $Proxy298.update(Unknown Source) @400000004f45c7530fed3b7c at sun.reflect.GeneratedMethodAccessor1929.invoke(Unknown Source) @400000004f45c7530fed434c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004f45c7530fed434c at java.lang.reflect.Method.invoke(Method.java:597) @400000004f45c7530fed4734 at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) @400000004f45c7530fed4f04 at $Proxy298.update(Unknown Source) @400000004f45c7530fed52ec at sun.reflect.GeneratedMethodAccessor1929.invoke(Unknown Source) @400000004f45c7530fed52ec at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004f45c7530fed56d4 at java.lang.reflect.Method.invoke(Method.java:597) @400000004f45c7530fed5abc at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) @400000004f45c7530fed5ea4 at $Proxy298.update(Unknown Source) @400000004f45c7530fed5ea4 at com.atlassian.jira.quickedit.action.QuickEditIssue.doExecute(QuickEditIssue.java:128) @400000004f45c7530fed628c at webwork.action.ActionSupport.execute(ActionSupport.java:165) @400000004f45c7530fed79fc at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82) @400000004f45c7530fed79fc at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39) @400000004f45c7530fed7de4 at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31) @400000004f45c7530fed7de4 at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16) @400000004f45c7530fed85b4 at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35) @400000004f45c7530fed916c at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205) @400000004f45c7530fed916c at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143) @400000004f45c7530fed9554 at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:152) @400000004f45c7530fed993c at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) @400000004f45c7530fed9d24 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) @400000004f45c7530feda10c at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) @400000004f45c7530feda10c at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:78) @400000004f45c7530feda4f4 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) @400000004f45c7530feda8dc at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) @400000004f45c7530fedacc4 at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) @400000004f45c7530fedacc4 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) @400000004f45c7530fedb87c at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) @400000004f45c7530fedb87c at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) @400000004f45c7530fedbc64 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) @400000004f45c7530fedbc64 at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) @400000004f45c7530fedc81c at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) @400000004f45c7530fedc81c at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42) @400000004f45c7530fedcc04 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) @400000004f45c7530fedcc04 at com.atlassian.agmp.integration.jira.ReprovisionConfigFilter.doFilter(ReprovisionConfigFilter.java:87) @400000004f45c7530fedd3d4 at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) {noformat} I've confirmed that this error is only occuring for issues which have a value in a custom field of type 'GreenHopper Released Version History'. h2. Workaround This only appears to occur when the 'Release Version History' field has been added to the screen used for editing. If you remove this field from all screens then the issue should be resolved.
Story points: 2