Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Xray DC V7.4.1
-
None
Description
Description
When importing automated results to a Project where the issue type Test is not present, if some Tests need to be created a Null Pointer Exception is thrown.
How to reproduce
- Create a project adding only the issue type Test Execution to it. Be sure that the Tests on the report do not exist in other projects.
- Import an XML results file where Tests must be created via UI.
Actual result/Attachments
An NPE is thrown:
Technical details
Log's referral number: d1fe0da1-f377-4e45-9c61-33564272a128
Cause
Referer URL: http://localhost:8080/projects/TEP/issues/TEP-1?filter=allopenissues
java.lang.NullPointerException
java.lang.NullPointerException
at com.xpandit.raven.service.executionresult.assembler.impl.TestAssemblerServiceImpl.b(Unknown Source) [?:?]
at com.xpandit.raven.service.executionresult.assembler.impl.TestAssemblerServiceImpl.a(Unknown Source) [?:?]
at com.xpandit.raven.service.executionresult.assembler.impl.TestAssemblerServiceImpl.a(Unknown Source) [?:?]
at com.xpandit.raven.service.executionresult.assembler.impl.TestAssemblerServiceImpl.a(Unknown Source) [?:?]
at com.xpandit.raven.service.executionresult.assembler.impl.TestAssemblerServiceImpl.a(Unknown Source) [?:?]
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) [?:?]
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) [?:?]
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.service.executionresult.assembler.impl.TestAssemblerServiceImpl.a(Unknown Source) [?:?]
at com.xpandit.raven.service.executionresult.impl.ImportExecutionResultsServiceImpl.a(Unknown Source) [?:?]
at com.xpandit.raven.service.executionresult.impl.ImportExecutionResultsServiceImpl.a(Unknown Source) [?:?]
at com.xpandit.raven.webwork.ImportExecutionResultsAction.doExecute(Unknown Source) [?:?]
at webwork.action.ActionSupport.execute(ActionSupport.java:165) [webwork-1.4-atlassian-31.jar:?]
Expected result
Instead of an NPE, a message should be presented stating that is not possible to create the Tests due to missing issue type on the project, as we present on Cloud hosting.
Version
- 7.4.1