check whether thisObject is null in renderSkin (which is the case

for global skins).
This commit is contained in:
hns 2001-09-10 14:29:39 +00:00
parent 130d88ef63
commit b73450de2a

View file

@ -592,8 +592,9 @@ public class HopExtension {
skin = reval.getSkin (thisObject, arguments[0].toString ()); skin = reval.getSkin (thisObject, arguments[0].toString ());
if (asString) if (asString)
reval.res.pushStringBuffer (); reval.res.pushStringBuffer ();
Object javaObj = thisObject == null ? null : thisObject.toJavaObject ();
if (skin != null) if (skin != null)
skin.render (reval, thisObject.toJavaObject (), params); skin.render (reval, javaObj, params);
else else
reval.res.write ("[Skin not found: "+arguments[0]+"]"); reval.res.write ("[Skin not found: "+arguments[0]+"]");
if (asString) if (asString)