Subj : Null Arguments for expressions To : netscape.public.mozilla.jseng From : petefromzim@hotmail.com (Pete) Date : Tue Feb 04 2003 09:58 pm 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 .