jdk/src/share/classes/java/awt/TrayIcon.java
changeset 3233 abdab1f90b46
parent 1191 f142c1da78c2
child 3288 db82a42da273
--- a/jdk/src/share/classes/java/awt/TrayIcon.java	Thu Jul 09 15:15:28 2009 -0400
+++ b/jdk/src/share/classes/java/awt/TrayIcon.java	Thu Jul 09 15:18:50 2009 -0400
@@ -143,6 +143,9 @@
      */
     public TrayIcon(Image image) {
         this();
+        if (image == null) {
+            throw new IllegalArgumentException("creating TrayIcon with null Image");
+        }
         setImage(image);
     }