diff options
| author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2019-05-16 12:14:07 +0300 | 
|---|---|---|
| committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2019-05-16 12:14:07 +0300 | 
| commit | 77ba332880819112b49395f85eff7e575a12e3ec (patch) | |
| tree | 4aae4942612be5df1b879bfeb2f8ef050816a012 /indra/llwindow | |
| parent | ce380a4e4f17a1d640e92ee64d2e44ff057ad871 (diff) | |
SL-11178 FIXED [mac] Viewer crashes if another app gets focus before viewer window is created
Diffstat (limited to 'indra/llwindow')
| -rw-r--r-- | indra/llwindow/llwindowmacosx.cpp | 5 | 
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() | 
