fix for #15578, r=mscott, a=granrose, fix crash on startup.

not sure why we don't have a webshell here...
This commit is contained in:
sspitzer%netscape.com 1999-10-05 18:13:15 +00:00
Родитель 1ac6e0f8b1
Коммит 5b2cb149d2
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -451,7 +451,9 @@ nsMessenger::OpenURL(const char * url)
else else
{ {
nsString urlStr(unescapedUrl); nsString urlStr(unescapedUrl);
mWebShell->LoadURL(urlStr.GetUnicode()); if (mWebShell) {
mWebShell->LoadURL(urlStr.GetUnicode());
}
} }
PL_strfree(unescapedUrl); PL_strfree(unescapedUrl);
} }