Skip to content

Commit

Permalink
Merge pull request JamzTheMan#12 from cwisniew/fix-2387
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew authored Feb 12, 2021
2 parents e0ca3c5 + 662e992 commit 37a57dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
import java.util.List;
import net.rptools.maptool.client.MapTool;
import net.rptools.maptool.client.MapToolExpressionParser;
import net.rptools.maptool.client.MapToolVariableResolver;
import net.rptools.maptool.client.functions.json.JSONMacroFunctions;
import net.rptools.maptool.client.functions.json.JsonArrayFunctions;
import net.rptools.maptool.language.I18N;
import net.rptools.maptool.util.FunctionUtil;
import net.rptools.parser.MapVariableResolver;
import net.rptools.parser.Parser;
import net.rptools.parser.ParserException;
import net.rptools.parser.VariableResolver;
Expand Down Expand Up @@ -203,7 +203,7 @@ private static void runExecFunction(String functionName, List<Object> execArgs)
Function function = parser.getFunction(functionName);
MapTool.getParser().enterTrustedContext(functionName, "execFunction");
try {
function.evaluate(parser, new MapVariableResolver(), functionName, execArgs);
function.evaluate(parser, new MapToolVariableResolver(null), functionName, execArgs);
} catch (ParserException ignored) {
}
MapTool.getParser().exitContext();
Expand Down

0 comments on commit 37a57dd

Please sign in to comment.