diff options
author | Sven Gothel <[email protected]> | 2009-09-13 01:31:40 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-09-13 01:31:40 -0700 |
commit | 7b80e9d7e29b836fca721ed051000fd977c0e5ce (patch) | |
tree | bac868764bb2644c2fcdfa4e0a758ddda9bdb7f5 /src/newt/classes/com/sun | |
parent | 91fc8eea89de185048b79b1a01a02357ff9919ca (diff) |
Newt.AWT: avoid npe
Diffstat (limited to 'src/newt/classes/com/sun')
-rw-r--r-- | src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java b/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java index c7f4d5e5d..ab50c30f8 100644 --- a/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java +++ b/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java @@ -300,8 +300,10 @@ public class AWTWindow extends Window { } public void componentMoved(ComponentEvent e) { - x = frame.getX(); - y = frame.getY(); + if(null!=frame) { + x = frame.getX(); + y = frame.getY(); + } display.enqueueEvent(window, com.sun.javafx.newt.WindowEvent.EVENT_WINDOW_MOVED, null); } |