Bug 744992 - Do not go into the preview code if it is null. r=benb,jmathies

This commit is contained in:
Michael Kaply 2012-05-03 18:33:50 -04:00
parent d4d480c5c0
commit a1f9c9ea3a

View File

@ -449,12 +449,12 @@ TaskbarPreview::MainWindowHook(void *aContext,
preview->mWnd = NULL;
} else {
nsWindow *window = WinUtils::GetNSWindowPtr(preview->mWnd);
NS_ASSERTION(window, "Cannot use taskbar previews in an embedded context!");
if (window) {
window->SetHasTaskbarIconBeenCreated();
window->SetHasTaskbarIconBeenCreated();
if (preview->mVisible)
preview->UpdateTaskbarProperties();
if (preview->mVisible)
preview->UpdateTaskbarProperties();
}
}
return false;
}