Author: rob.stryker(a)jboss.com
Date: 2007-10-19 03:18:47 -0400 (Fri, 19 Oct 2007)
New Revision: 4360
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ServerViewProvider.java
Log:
View Provider failing bc of no icon? INCONCEIVABLE!
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ServerViewProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ServerViewProvider.java 2007-10-19
05:32:39 UTC (rev 4359)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ServerViewProvider.java 2007-10-19
07:18:47 UTC (rev 4360)
@@ -48,8 +48,11 @@
setWeight( prefs.contains(weightKey) ? prefs.getInt(weightKey) : 0 );
Bundle pluginBundle = JBossServerUIPlugin.getDefault().getBundle();
- iconDescriptor =
- ImageDescriptor.createFromURL(pluginBundle.getEntry(getIconLocation()));
+ String iconLoc = getIconLocation();
+ if( iconLoc != null ) {
+ iconDescriptor =
+ ImageDescriptor.createFromURL(pluginBundle.getEntry(iconLoc));
+ }
}
public String getId() {
Show replies by date