[hg] main-silver: #227374: NPE is now not appearing when submitt...

  • From: Martin Kozeny < >
  • To:
  • Subject: [hg] main-silver: #227374: NPE is now not appearing when submitt...
  • Date: Thu, 21 Mar 2013 04:39:24 -0700

changeset 72bbaaf88a4a in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/72bbaaf88a4a
description:
        #227374: NPE is now not appearing when submitting Branding window 
after clicking 'Cancel' in select icon dialog.

diffstat:

 
apisupport.project/src/org/netbeans/modules/apisupport/project/spi/BrandingModel.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/apisupport.project/src/org/netbeans/modules/apisupport/project/spi/BrandingModel.java
 
b/apisupport.project/src/org/netbeans/modules/apisupport/project/spi/BrandingModel.java
--- 
a/apisupport.project/src/org/netbeans/modules/apisupport/project/spi/BrandingModel.java
+++ 
b/apisupport.project/src/org/netbeans/modules/apisupport/project/spi/BrandingModel.java
@@ -235,7 +235,7 @@
                 default:
                     throw new IllegalArgumentException("Invalid icon size: " 
+ size);
             }
-            if (icon != null) {
+            if (icon != null && url != null) {
                 icon.setBrandingSource(url);
             }
         }

[hg] main-silver: #227374: NPE is now not appearing when submitt...

Martin Kozeny 03/21/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close