diff options
author | Lillian Angel <langel@redhat.com> | 2006-08-08 16:02:51 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2006-08-08 16:02:51 +0000 |
commit | c3ea0ff462ca77ee82b76647ea7f5c8c7af47d05 (patch) | |
tree | a620d9c3990efb5df0feb5ab9d2b4a3f22497089 /java/awt | |
parent | c5c6ce4feb1652d4aeb4049ced53834c4375e196 (diff) | |
download | classpath-c3ea0ff462ca77ee82b76647ea7f5c8c7af47d05.tar.gz |
2006-08-08 Lillian Angel <langel@redhat.com>
* java/awt/Component.java
(setDropTarget): Added check.
Diffstat (limited to 'java/awt')
-rw-r--r-- | java/awt/Component.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/awt/Component.java b/java/awt/Component.java index bb5ce3f33..4b4c390d4 100644 --- a/java/awt/Component.java +++ b/java/awt/Component.java @@ -700,7 +700,9 @@ public abstract class Component public void setDropTarget(DropTarget dt) { this.dropTarget = dt; - dropTarget.addNotify(peer); + + if (peer != null) + dropTarget.addNotify(peer); } /** |