Added null pointer check for mRootView in Composite()

git-svn-id: svn://10.0.0.236/trunk@2949 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy
1998-06-02 21:05:00 +00:00
parent 4cb77517c8
commit b706f86e4e

View File

@@ -346,7 +346,7 @@ printf("unable to get rc\n");
void nsViewManager :: Composite()
{
if (mDirtyRect.IsEmpty() == PR_FALSE)
if ((nsnull != mRootView) && (mDirtyRect.IsEmpty() == PR_FALSE))
Refresh(mRootView, nsnull, &mDirtyRect, NS_VMREFRESH_DOUBLE_BUFFER);
}