summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2019-05-16 12:14:07 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2019-05-16 12:14:07 +0300
commit77ba332880819112b49395f85eff7e575a12e3ec (patch)
tree4aae4942612be5df1b879bfeb2f8ef050816a012
parentce380a4e4f17a1d640e92ee64d2e44ff057ad871 (diff)
SL-11178 FIXED [mac] Viewer crashes if another app gets focus before viewer window is created
-rw-r--r--indra/llwindow/llwindowmacosx.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp
index 6dec131a34..3554f90be8 100644
--- a/indra/llwindow/llwindowmacosx.cpp
+++ b/indra/llwindow/llwindowmacosx.cpp
@@ -382,7 +382,10 @@ void callWindowFocus()
void callWindowUnfocus()
{
- gWindowImplementation->getCallbacks()->handleFocusLost(gWindowImplementation);
+ if ( gWindowImplementation && gWindowImplementation->getCallbacks() )
+ {
+ gWindowImplementation->getCallbacks()->handleFocusLost(gWindowImplementation);
+ }
}
void callWindowHide()