diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-08-16 16:22:34 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-08-16 16:22:34 +0000 |
commit | 988ea14cc6a504c6d5c7b9bfcbc01ca2b0a4e432 (patch) | |
tree | 0ee0ebd2e7d7a1b0b00edf51b48286965b1b4fca /java/util/Observable.java | |
parent | e439fd75db6107e87660301775017154f05e1c06 (diff) | |
download | classpath-988ea14cc6a504c6d5c7b9bfcbc01ca2b0a4e432.tar.gz |
2005-08-16 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge of HEAD-->generics-branch for 2005/08/07-2005/08/14.
Diffstat (limited to 'java/util/Observable.java')
-rw-r--r-- | java/util/Observable.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/util/Observable.java b/java/util/Observable.java index 4c2cddb54..916abe4ac 100644 --- a/java/util/Observable.java +++ b/java/util/Observable.java @@ -77,6 +77,8 @@ public class Observable */ public synchronized void addObserver(Observer observer) { + if (observer == null) + throw new NullPointerException("can't add null observer"); observers.add(observer); } |