Subj : Re: Null Arguments for expressions To : Pete From : nboyd@atg.com (Norris Boyd) Date : Wed Feb 05 2003 06:29 pm Just use null rather than Context.toObject(null, scope) --N Pete wrote: >Hi > >I am using rhino to parse expressions for a rule engine. Some of these >rules require a check to see whether a given argument is null, however >when adding null as an argument ie. >Scriptable jsArgs = Context.toObject(null, scope); >I get the follwoing error. >TypeError: Cannot convert null to an object. > at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:496) > at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:467) > >Is there anyway to have an argument of null. > >Cheers Pete > > > > .