Revision: 4317
          http://vexi.svn.sourceforge.net/vexi/?rev=4317&view=rev
Author:   clrg
Date:     2012-01-09 11:47:49 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
NPE Fix for frames with no icon

Modified Paths:
--------------
    trunk/org.vexi-core.main/src/main/java/org/vexi/core/Surface.java

Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/core/Surface.java
===================================================================
--- trunk/org.vexi-core.main/src/main/java/org/vexi/core/Surface.java   
2012-01-06 16:37:27 UTC (rev 4316)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/core/Surface.java   
2012-01-09 11:47:49 UTC (rev 4317)
@@ -479,7 +479,7 @@
             }
         };
         icon = newicon == null ? null : Picture.load(newicon, seticon);
-        if (icon.isLoaded) {
+        if (icon != null && icon.isLoaded) {
                // if Picture is already loaded then
                // the callable is not used
                _setIcon(icon);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to