Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-2827

NPE when moving Test issues

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • R3.1.3
    • None
    • None
    • OK

    Description

      An NPE occurs when moving Test issues. The Test issue should be linked with a Pre-Condition to reproduce this error.

      How to reproduce:

      1. Create a Test issue
      2. Associate a Pre-Condition
      3. In the Test issue page, click on 'More' > 'Move'
      4. Select the Project and Issue Type
      5. Click on Next
      6. You'll be redirected to an error page and will get the following stack trace (snippet):
      java.lang.NullPointerException
      	at com.xpandit.raven.customfield.TestPreconditionCustomField.getProjectList(TestPreconditionCustomField.java:319) [?:?]
      	at com.xpandit.raven.customfield.TestPreconditionCustomField.validateFromParams(TestPreconditionCustomField.java:347) [?:?]
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.needsMove(ImmutableCustomField.java:1103) [classes/:?]
      	at com.atlassian.jira.web.action.issue.MoveIssueUpdateFields.doDefault(MoveIssueUpdateFields.java:67) [classes/:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_102]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_102]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102]
      	at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
      

       This problem also occurs when moving Test issues in bulk.

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            dmdu David Duarte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 30 minutes
                6h 30m