Null pointer check to prevent a crash by edit from desktop for Japanese path name, bug 59466, r=akkana, sr=brendan.

This commit is contained in:
nhotta%netscape.com 2000-11-09 04:35:38 +00:00
Родитель 3b0c4b2f72
Коммит 56ca08608c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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