\r
// Update tree test result collection\r
// TODO: optimize\r
- SlcExecution slcExecution = slcExecutionDao\r
- .getSlcExecution(testRunDescriptor.getSlcExecutionUuid());\r
- if (slcExecution != null) {\r
- addResultToCollection(slcExecution.getUser(), testRunDescriptor\r
- .getTestResultUuid());\r
+\r
+ if (testRunDescriptor.getSlcExecutionUuid() != null) {\r
+ SlcExecution slcExecution = slcExecutionDao\r
+ .getSlcExecution(testRunDescriptor\r
+ .getSlcExecutionUuid());\r
+ if (slcExecution != null) {\r
+ addResultToCollection(slcExecution.getUser(),\r
+ testRunDescriptor.getTestResultUuid());\r
+ }\r
}\r
}\r
}\r