Commit 467490da authored by Alfons Laarman's avatar Alfons Laarman

Optimize perpetual exception creation 2

parent 25022086
......@@ -154,7 +154,7 @@ public class Variable {
public int getConstantValue() throws ParseException {
if (assignedTo || getType() instanceof CustomVariableType || getType() instanceof ChannelType)
throw new ParseException("Variable "+ this +" is not a constant in process "+ owner);
throw Expression.pex;
if (initExpr == null) {
return 0;
} else {
......
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