diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index aba2df0ae011..25182cbab211 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -598,7 +598,7 @@ void nsViewManager :: RenderViews(nsIView *aRootView, nsIRenderingContext& aRC, nsRegionRectSet onerect, *rectset; //printf("begin paint\n"); - if (nsnull != aRootView) + if (aRootView && mRootView) { nscoord ox = 0, oy = 0;