Skip to content

Commit

Permalink
dotCMS#27744 fix for js endpoint (dotCMS#27745)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms authored and spbolton committed Feb 28, 2024
1 parent 80c0b3b commit f5815ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dotCMS/src/main/java/com/dotcms/rendering/js/JsResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,11 @@ private Map<Object, Object> toObjectObjectMap (final Map<String, Object> map) {

final Map<Object, Object> objectObjectMap = new HashMap<>();

for (final Map.Entry<String, Object> entry : map.entrySet()) {
if (Objects.nonNull(map)) {
for (final Map.Entry<String, Object> entry : map.entrySet()) {

objectObjectMap.put(entry.getKey(), entry.getValue());
objectObjectMap.put(entry.getKey(), entry.getValue());
}
}

return objectObjectMap;
Expand Down

0 comments on commit f5815ca

Please sign in to comment.