Subj : null to jsFunction_ with Integer parameter is 0 To : netscape.public.mozilla.jseng From : Trinition Date : Sat Jan 29 2005 05:03 am I have a ScriptableObject with a function: jsFunction_setBgcolor(Integer color) { ..... } Originally, this function took an int. However, I wanted to be able to support 'null' to indicate no color (i.e. transparent). Thus, I changed it to take an Integer instead of an int. However, Rhino is passing in an Integer with the value 0 when I invoke it with a script like this: myObject.setBgcolor(null); Is there a way to get Rhino to pass me a null instead of a new Integer(0)? Regards, Brian. .