Browse Source

Merge pull request #1406 from Azaezel/alpha41/crashfix

fix another potential crash with firstresponder code
Brian Roberts 7 months ago
parent
commit
3b39d74f57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/gui/editor/inspector/field.cpp

+ 1 - 1
Engine/source/gui/editor/inspector/field.cpp

@@ -233,7 +233,7 @@ void GuiInspectorField::setFirstResponder( GuiControl *firstResponder )
 {
 {
    Parent::setFirstResponder( firstResponder );
    Parent::setFirstResponder( firstResponder );
 
 
-   if (( firstResponder == this || firstResponder == mEdit ) && firstResponder->isProperlyAdded())
+   if (( firstResponder == this || firstResponder == mEdit ) && (firstResponder && firstResponder->isProperlyAdded()))
    {
    {
       mInspector->setHighlightField( this );      
       mInspector->setHighlightField( this );      
    }   
    }