Prop window null?

This commit is contained in:
andreja6
2019-11-06 11:08:37 -08:00
parent a4ef9bbad1
commit 782504278c

View File

@@ -56,7 +56,7 @@ PartInstance* Application::makePart()
void Application::setFocus(bool focus)
{
if(_propWindow->_hwndProp != NULL)
if(_propWindow != NULL && _propWindow->_hwndProp != NULL)
if(focus)
{
ShowWindow(_propWindow->_hwndProp, SW_SHOW);