diff options
author | Sven Gothel <[email protected]> | 2014-02-26 15:53:41 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-26 15:53:41 +0100 |
commit | 9fb1e46e43900ec9b2f9c9af1fc8984e101c8811 (patch) | |
tree | 5eb0a8995568f39e02e0bc37ecf1ac02e1c50a2d /src/nativewindow/classes/com/jogamp | |
parent | c2e6233c57f47c067dbb24f4a6a127fbaedf7a08 (diff) |
AWTMisc.static: Allow static creation of 'null' AWT cursor to fail (i.e. AWT headless)
Diffstat (limited to 'src/nativewindow/classes/com/jogamp')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java index 20ab7a2ee..bb7b44795 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java @@ -432,7 +432,10 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface, public final boolean hideCursor() { AWTEDTExecutor.singleton.invoke(false, new Runnable() { public void run() { - component.setCursor(AWTMisc.getNullCursor()); + final Cursor cursor = AWTMisc.getNullCursor(); + if( null != cursor ) { + component.setCursor(cursor); + } } } ); return true; } |