diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index e4a14d5b85ed..5052970fdcb6 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -3454,7 +3454,8 @@ nsresult nsPluginInstanceOwner::ScrollPositionDidChange(nsIScrollableView* aScro #if defined(XP_MACOSX) // FIXME - Only invalidate the newly revealed amount. - mWidget->Invalidate(PR_TRUE); + if (mWidget) + mWidget->Invalidate(PR_TRUE); #endif }