Subj : Re: NullPointerException To : Aru From : Igor Bukanov Date : Fri May 23 2003 11:19 am But how do you call Context.evaluateString? In particular, how do you get cx object that you pass to it? Regards, Igor Aru wrote: > Hello there, > > I am right now using Rhin RC1.5 R4.1 and am getting a NullPointerException, > but randomly. > I give my javascript to the Context.evaluateString(). > Creation of context and Scriptable were everything ok. > I do get "SOMETIMES" the foll exception, > > java.lang.NullPointerException > at > org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:381) > at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:97) > at org.mozilla.javascript.Context.compile(Context.java:2018) > at org.mozilla.javascript.Context.compile(Context.java:1948) > at org.mozilla.javascript.Context.compileReader(Context.java:899) > at org.mozilla.javascript.Context.evaluateReader(Context.java:817) > at org.mozilla.javascript.Context.evaluateString(Context.java:784) > > Any help on this issue would highly be appreciated. > > Thanks -Aru > > .