[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/plugin/splashscreen/SplashScreenActivator.java

yanas at dev.java.net yanas at dev.java.net
Thu Apr 26 23:41:40 CEST 2007


User: yanas   
Date: 2007-04-26 21:41:40+0000
Log:
 check if the welcomeWindow exists, before trying to show in it the bundle that is currenly loading

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/plugin/splashscreen/
===============================================================================

File [changed]: SplashScreenActivator.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/plugin/splashscreen/SplashScreenActivator.java?r1=1.1&r2=1.2
Delta lines:  +3 -1
-------------------
--- SplashScreenActivator.java	2007-01-19 18:03:28+0000	1.1
+++ SplashScreenActivator.java	2007-04-26 21:41:38+0000	1.2
@@ -52,6 +52,8 @@
 
     public void bundleChanged(BundleEvent evt)
     {
-        welcomeWindow.setBundle(evt.getBundle().getHeaders().get("Bundle-Name").toString());
+        if(welcomeWindow != null && welcomeWindow.isShowing())
+            welcomeWindow.setBundle(evt.getBundle().getHeaders()
+                .get("Bundle-Name").toString());
     }            
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list