From 2fa51fc99737118060a04ba5078f36b3c9a2adca Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 28 Jul 2017 11:19:41 -0700 Subject: [PATCH] Fix null pointer exceptions associated with turning ! into an operator. --- src/org/nwapw/abacus/plugin/StandardPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/nwapw/abacus/plugin/StandardPlugin.java b/src/org/nwapw/abacus/plugin/StandardPlugin.java index 68a733e..a6b6766 100755 --- a/src/org/nwapw/abacus/plugin/StandardPlugin.java +++ b/src/org/nwapw/abacus/plugin/StandardPlugin.java @@ -246,7 +246,7 @@ public class StandardPlugin extends Plugin { * @return the nth term of the series. */ private NumberInterface getExpSeriesTerm(int n, NumberInterface x){ - return x.intPow(n).divide(this.getFunction("!").apply((new NaiveNumber(n)).promoteTo(x.getClass()))); + return x.intPow(n).divide(this.getOperator("!").getFunction().apply((new NaiveNumber(n)).promoteTo(x.getClass()))); } /**