check whether thisObject is null in renderSkin (which is the case
for global skins).
This commit is contained in:
parent
130d88ef63
commit
b73450de2a
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue