Subj : Re: NullPointerException To : Arumugam Appadurai From : Igor Bukanov Date : Wed May 28 2003 03:49 pm Arumugam Appadurai wrote: > Hi Igor, > I forgot to mention one thing in my earlier mail. > Infact, I do have a finalize() which in turn calls the context.exit(). This is wrong! Context.exit() MUST be called after each Context.enter() on the same thread. Your finalize call will be executed on some GC thread and it will remove the wrong Context object. And which version of Rhino do you use? Rhino 1.5R4.* contains code that should detect this incorrect usage. Regards, Igor .