Unverified Commit b6feaee4 authored by medou-boushab's avatar medou-boushab Committed by GitHub
Browse files

Merge pull request #3774 from ow2-proactive/resultMap

Handle the case where the value of a resultMap entry is null
parents 51f8ca32 effdedf2
......@@ -376,8 +376,8 @@ public class SchedulerStateRest implements SchedulerRestInterface {
}
return source.entrySet()
.stream()
.filter(entry -> entry.getValue() != null)
.collect(Collectors.toMap(Entry::getKey, entry -> entry.getValue().toString()));
.collect(Collectors.toMap(Entry::getKey,
entry -> entry.getValue() != null ? entry.getValue().toString() : ""));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment