error-line-number not set (beanshell 2.1b5)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error-line-number not set (beanshell 2.1b5)

kurt
 java.lang.NullPointerException
        at bsh.ParseException.getErrorLineNumber(ParseException.java:276)
        at bsh.BshScriptEngine.evalSource(BshScriptEngine.java:93)
        at bsh.BshScriptEngine.eval(BshScriptEngine.java:61)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error-line-number not set (beanshell 2.1b5)

kurt
update:
  currentToken is null
in
public int getErrorLineNumber() {
  return currentToken.next.beginLine;
}

because the given script was cripplet.
anyway that exception hides the original one ...
Loading...