aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2004-06-27 12:10:12 +0000
committerMark Wielaard <mark@gcc.gnu.org>2004-06-27 12:10:12 +0000
commit66a74d2a079df4c1945926eda5d482e88214a101 (patch)
tree612d1c3cc6ca3d5f78695a352f7e7dd6e1cb5329 /libjava/java
parent093ff71e715f8192ce276ed1e4adf38e657781f7 (diff)
downloadgcc-66a74d2a079df4c1945926eda5d482e88214a101.zip
gcc-66a74d2a079df4c1945926eda5d482e88214a101.tar.gz
gcc-66a74d2a079df4c1945926eda5d482e88214a101.tar.bz2
[multiple changes]
2004-06-27 Mark Wielaard <mark@klomp.org> * java/awt/EventQueue.java (postEvent): Throw NullPointerException when argument is null. 2004-06-26 Mark Wielaard <mark@klomp.org> * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c (ok_clicked): Use Ljava/lang/String; not Ljava.lang.String; in JNI GetMethodID call. (cancel_clicked): Likewise. From-SVN: r83731
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/awt/EventQueue.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/java/awt/EventQueue.java b/libjava/java/awt/EventQueue.java
index 5cdfa63..1c794d4 100644
--- a/libjava/java/awt/EventQueue.java
+++ b/libjava/java/awt/EventQueue.java
@@ -161,6 +161,9 @@ public class EventQueue
*/
public synchronized void postEvent(AWTEvent evt)
{
+ if (evt == null)
+ throw new NullPointerException();
+
if (next != null)
{
next.postEvent(evt);