Permalink
Browse files

Give FormulaSemantics the input format so value() doesn't fail at load (

  • Loading branch information...
thpr authored and karianna committed Nov 6, 2018
1 parent 84fbac2 commit b1d31c2508b9ea00fbf11767df41daa037621097
Showing with 2 additions and 0 deletions.
  1. +2 −0 code/src/java/pcgen/cdom/base/FormulaFactory.java
@@ -18,6 +18,7 @@
package pcgen.cdom.base;
import java.util.Objects;
import java.util.Optional;
import pcgen.base.formula.Formula;
import pcgen.base.formula.base.DependencyManager;
@@ -372,6 +373,7 @@ public void isValid(FormulaSemantics semantics) throws SemanticsException
{
NEPFormula<T> formula = getNEPFormulaFor(formatManager, expression);
FormulaSemantics semantics = managerFactory.generateFormulaSemantics(formulaManager, varScope);
semantics = semantics.getWith(FormulaSemantics.INPUT_FORMAT, Optional.of(formatManager));
try
{
formula.isValid(semantics);

0 comments on commit b1d31c2

Please sign in to comment.