Skip to content

Commit

Permalink
#26227 minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Sep 25, 2023
1 parent 8b63dfe commit 0daa688
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public Object eval(final HttpServletRequest request,
final Reader scriptReader,
final Map<String, Object> contextParams) {

final DotJSON dotJSON = new DotJSON();
final DotJSON dotJSON = (DotJSON)contextParams.getOrDefault("dotJSON", new DotJSON());
try (Context context = Context.create()) {

final Object fileName = contextParams.getOrDefault("dot:jsfilename", "sample.js");
Expand Down

0 comments on commit 0daa688

Please sign in to comment.