diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-02 01:11:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-02 01:31:15 +0200 |
commit | 9dc883623f85f2ceec22c3e5c1750ff7acd3cac5 (patch) | |
tree | 9cb90255551015e7739cb8df2fcd661bbe4039d0 /vcl/osx | |
parent | 603d9c1a01a37358f04cee4852838b7ccaecb648 (diff) |
prevent potential crash if no SystemWindowData is passed
Change-Id: I92a084bba88a4c34e93aac9b547a986ea6381790
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/salobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salobj.cxx b/vcl/osx/salobj.cxx index 8cccd1be4af6..7932f8af12b2 100644 --- a/vcl/osx/salobj.cxx +++ b/vcl/osx/salobj.cxx @@ -47,7 +47,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWindowDat [mpFrame->getNSView() addSubview: mpClipView]; [mpClipView setHidden: YES]; } - if (pWindowData->bOpenGL) + if (pWindowData && pWindowData->bOpenGL) { NSOpenGLPixelFormat* pixFormat = NULL; |