Subj : WrapFactory.wrapAsJavaObject has null class argument To : netscape.public.mozilla.jseng From : Rod Macpherson Date : Wed Jul 06 2005 01:07 pm Consider a Map that contains Model objects where both Map and Model return a Scriptable from my WrapFactory override: public Scriptable WrapFactory.wrapAsJavaObject(Context context, Scriptable scope, Object object, Class klass) Now consider this reference in JavaScript: myMap.myModel; The myMap object is processed by the WrapFactory and klass is java.util.Map; perfect. The myModel object is then processed but klass is null; crashes my code. The object looks fine: it's a Model type. How do I control what gets passed to wrapAsJavaObject? .