TView::GetUserSelection should check before calling fDocument

1615914

Dec 30 1996 2:21PM


This code is unsafe if fDocument is NULL.
TDesignator* TView::GetUserSelection()
{
	return fSuperView ? fSuperView->GetUserSelection() : fDocument->GetUserSelection();
}

Fix:

In UView.cp: it now checks to make sure fDocument is not NULL.