Mac OS X: Handle frame == null case

This commit is contained in:
Elias Naur 2004-11-19 15:18:29 +00:00
parent e5486ff2df
commit f3221396ed
1 changed files with 5 additions and 3 deletions

View File

@ -98,9 +98,11 @@ final class MacOSXDisplay implements DisplayImplementation {
public void destroyWindow() {
if (MacOSXFrame.getDevice().getFullScreenWindow() != null)
MacOSXFrame.getDevice().setFullScreenWindow(null);
setView(null);
frame.syncDispose();
frame = null;
if (frame != null) {
setView(null);
frame.syncDispose();
frame = null;
}
hideUI(false);
}