Fix for bug 54079: don't crash when loading XUL into the composer content area. Simple null check a=akkana, sr=brendan. Landed on trunk and branch

This commit is contained in:
sfraser%netscape.com 2000-09-27 23:08:09 +00:00
parent e7f1eaafcb
commit 4c4c45722f

View File

@ -691,7 +691,8 @@ nsJSContext::ExecuteScript(void* aScriptObject,
{
if (!mScriptsEnabled) {
*aIsUndefined = PR_TRUE;
aRetValue->Truncate();
if (aRetValue)
aRetValue->Truncate();
return NS_OK;
}