From 7b80e9d7e29b836fca721ed051000fd977c0e5ce Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 13 Sep 2009 01:31:40 -0700 Subject: Newt.AWT: avoid npe --- src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/newt') 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); } -- cgit v1.2.3