Fix null pointer exceptions associated with turning ! into an operator.

This commit is contained in:
Danila Fedorin 2017-07-28 11:19:41 -07:00
parent 2ba6e22fcb
commit 0b3648d4f3
1 changed files with 1 additions and 1 deletions

View File

@ -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())));
}
/**