Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Jasmine question

$
0
0

Hello All,

I am using Jasmine (Peter Lager's aka Quarks) Java expression evaluation library for a little project. But I am getting a java.lang.NullPointerException on the line that compiles the expression :

Expression e = Compile.expression(anExpr, false);

The programme calls the method containing this statement several times, in fact the particular expression has already been evaluated in a different call to the method (I know I need to optimise it). The point is it works every previous time but for this occurrence (possibly the 20th time or so that the statement is ran) it gives an error.

Further testing :

1) The expression used doesn't cause it (I've tried different ones) 2) I can call the method that contains the statement 4 times but on the fifth it crashes.

Some sort of memory fault (should I be doing something to the objects used)?


Viewing all articles
Browse latest Browse all 2896

Trending Articles