#163587: check for null values
authorTomas Holy <t_h@netbeans.org>
Tue, 12 May 2009 13:30:24 +0200
changeset 782f7dc165aeb24
parent 781 3111e3fd5785
child 783 0d7ab5cab025
child 913 1f56cea60d4d
#163587: check for null values
openide.util/src/org/openide/util/ImageUtilities.java
     1.1 --- a/openide.util/src/org/openide/util/ImageUtilities.java	Mon May 11 10:53:46 2009 +0200
     1.2 +++ b/openide.util/src/org/openide/util/ImageUtilities.java	Tue May 12 13:30:24 2009 +0200
     1.3 @@ -227,6 +227,8 @@
     1.4       * @return Image with attached tool tip 
     1.5       */    
     1.6      public static final Image assignToolTipToImage(Image image, String text) {
     1.7 +        Parameters.notNull("image", image);
     1.8 +        Parameters.notNull("text", text);
     1.9          ToolTipImageKey key = new ToolTipImageKey(image, text);
    1.10          Image cached;
    1.11          synchronized (imageToolTipCache) {