Mac OS X: Handle frame == null case
This commit is contained in:
parent
e5486ff2df
commit
f3221396ed
|
@ -98,9 +98,11 @@ final class MacOSXDisplay implements DisplayImplementation {
|
||||||
public void destroyWindow() {
|
public void destroyWindow() {
|
||||||
if (MacOSXFrame.getDevice().getFullScreenWindow() != null)
|
if (MacOSXFrame.getDevice().getFullScreenWindow() != null)
|
||||||
MacOSXFrame.getDevice().setFullScreenWindow(null);
|
MacOSXFrame.getDevice().setFullScreenWindow(null);
|
||||||
|
if (frame != null) {
|
||||||
setView(null);
|
setView(null);
|
||||||
frame.syncDispose();
|
frame.syncDispose();
|
||||||
frame = null;
|
frame = null;
|
||||||
|
}
|
||||||
hideUI(false);
|
hideUI(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue