diff options
author | Lillian Angel <langel@redhat.com> | 2006-07-28 16:52:13 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2006-07-28 16:52:13 +0000 |
commit | f5f8ea709c1fc30ab976524a93c7dc538f212aaf (patch) | |
tree | c04671444d0fd9db967c35e105629fdede92a34d /gnu | |
parent | af71389de7dd2fe3253845964687a2cf16e2f586 (diff) | |
download | classpath-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.java | 4 |
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) |