b=548434 NULL check aNPP in _invalidaterect for nspluginwrapper r=cjones

--HG--
extra : rebase_source : 6af217c167b313f034461ec63d7dd45cb5bd5225
This commit is contained in:
Karl Tomlinson 2010-02-24 16:19:51 -08:00
Родитель 79a3603e5a
Коммит a0842f75ce
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -945,7 +945,10 @@ _invalidaterect(NPP aNPP,
{
PLUGIN_LOG_DEBUG_FUNCTION;
AssertPluginThread();
InstCast(aNPP)->InvalidateRect(aInvalidRect);
// NULL check for nspluginwrapper (bug 548434)
if (aNPP) {
InstCast(aNPP)->InvalidateRect(aInvalidRect);
}
}
void NP_CALLBACK