Commit effdedf2 authored by medou-boushab's avatar medou-boushab
Browse files

Handle the case when the value of a resultMap entry is null

parent 51f8ca32
...@@ -376,8 +376,8 @@ public class SchedulerStateRest implements SchedulerRestInterface { ...@@ -376,8 +376,8 @@ public class SchedulerStateRest implements SchedulerRestInterface {
} }
return source.entrySet() return source.entrySet()
.stream() .stream()
.filter(entry -> entry.getValue() != null) .collect(Collectors.toMap(Entry::getKey,
.collect(Collectors.toMap(Entry::getKey, entry -> entry.getValue().toString())); entry -> entry.getValue() != null ? entry.getValue().toString() : ""));
} }
......
Supports Markdown
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