-
Bug
-
Resolution: Fixed
-
Medium
-
2.0.4, 2.1.2, 2.3.2, 2.7.13, 2.9.0
-
None
When trying to rename a project key, get the following:
2009-09-15 10:04:08,890 ERROR [btpool0-283] org.mortbay.log org.mortbay.log.Slf4jLog-warn - /fisheye/admin/updateProject.do java.lang.NullPointerException at com.atlassian.fisheye.jira.DefaultJiraServerManager.updateCrucibleProjectKey(DefaultJiraServerManager.java:394) at com.cenqua.crucible.model.managers.impl.DefaultProjectManager.changeProjectKey(DefaultProjectManager.java:100) at com.cenqua.crucible.actions.admin.project.ProjectDataFactory.updateProject(ProjectDataFactory.java:40) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:55) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction$1.doInTransaction(UpdateProjectAction.java:31) at com.atlassian.fisheye.spi.TxTemplate.execute(TxTemplate.java:137) at com.cenqua.crucible.actions.admin.project.UpdateProjectAction.execute(UpdateProjectAction.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
The offending line:
JiraProjectMappingType mappings = jiraServerType.getJiraMappings(); for (JiraCrucibleMappingType cruMapping : mappings.getCrucibleProjectArray()) {
however jiraServerType.getJiraMappings() can return null.