Fix NullPointerException

This commit is contained in:
SerpentSpirale 2021-09-06 23:06:50 +02:00
parent 361fafb3dc
commit 696eb1a620

View File

@ -199,8 +199,8 @@ public class ControlData {
}
private static float calculate(String math) {
setExpression(math);
if(builder.get() == null) bypassExpressionBuilder();
setExpression(math);
return (float) builder.get().build().evaluate();
}