- 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
+ String collectionId = slcExecution.getUser() != null ? slcExecution\r
+ .getUser()\r
+ : "default";\r
+ addResultToCollection(collectionId, testRunDescriptor\r
+ .getTestResultUuid());\r
+ }\r