summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLillian Angel <langel@redhat.com>2006-07-28 16:52:13 +0000
committerLillian Angel <langel@redhat.com>2006-07-28 16:52:13 +0000
commitf5f8ea709c1fc30ab976524a93c7dc538f212aaf (patch)
treec04671444d0fd9db967c35e105629fdede92a34d /gnu
parentaf71389de7dd2fe3253845964687a2cf16e2f586 (diff)
downloadclasspath-f5f8ea709c1fc30ab976524a93c7dc538f212aaf.tar.gz
2006-07-28 Lillian Angel <langel@redhat.com>
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java (GtkDragSourceContextPeer): Added check to avoid NPE.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java b/gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
index 2488ed509..168c8ba2a 100644
--- a/gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
+++ b/gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
@@ -78,7 +78,9 @@ public class GtkDragSourceContextPeer
create(peer);
connectSignals(peer);
cursor = comp.getCursor();
- setTarget(target.getPeer());
+
+ if (target != null)
+ setTarget(target.getPeer());
}
ComponentPeer getComponentPeer(Component c)