Added null pointer check in case the root view pointer is null

This commit is contained in:
troy%netscape.com 1998-10-19 22:12:29 +00:00
Родитель ff26b4ea21
Коммит cb06cb59b4
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -449,7 +449,10 @@ NS_IMETHODIMP nsViewManager :: Composite()
{
// Walk the view hierarchy and for each view that has a non-empty
// dirty region invalidate its associated widget
UpdateDirtyViews(mRootView);
if (nsnull != mRootView)
{
UpdateDirtyViews(mRootView);
}
return NS_OK;
}