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

NPE getting Test Run with modified Test

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 6.0.3
    • REST API

    Description

      How to reproduce

      • Create a test with 2 steps
      • Create a test run
      • Delete one of the steps
      • Do the following request
        .../rest/raven/2.0/testrun?testExecIssueKey=abc-1&testIssueKey=abc-2

      Actual result

      java.lang.NullPointerException
      	at com.xpandit.raven.rest.api.beans.testrun.TestRunBeanFactoryImpl.a(Unknown Source)
      	at com.xpandit.raven.rest.api.beans.testrun.TestRunBeanFactoryImpl.b(Unknown Source)
      	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
      	at com.xpandit.raven.rest.api.beans.testrun.TestRunBeanFactoryImpl.c(Unknown Source
      

      Attachments

        Activity

          People

            dpca Diamantino Campos
            mdrf Marcelo Ferreira
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: