Skip to content
Snippets Groups Projects
Commit 1b3178f1 authored by Jan Gruteser's avatar Jan Gruteser
Browse files

fix NPE

parent 14bca211
No related branches found
No related tags found
No related merge requests found
......@@ -58,9 +58,11 @@ public class Log {
fieldNames.add("Operation Coverage");
Map<String, Long> operationCount = tlcResults.getOperationCount();
List<String> opCountString = new ArrayList<>();
if (operationCount != null) {
for (String operation : operationCount.keySet()) {
opCountString.add(operation + DELIMITER + operationCount.get(operation));
}
}
fieldValues.add(!opCountString.isEmpty() ? String.join(DELIMITER, opCountString) : "");
fieldNames.add("Trace File");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment