Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-2202

NPE thrown when trying to change project key

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.10.0
    • 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.

              mswinarski Maciej Swinarski (Inactive)
              pkamal Partha
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: