Author: dgolovin
Date: 2008-01-07 13:15:45 -0500 (Mon, 07 Jan 2008)
New Revision: 5524
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/ViewPreferencePage.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1483
Check for null value added
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/ViewPreferencePage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/ViewPreferencePage.java 2008-01-04
19:10:15 UTC (rev 5523)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/preferencepages/ViewPreferencePage.java 2008-01-07
18:15:45 UTC (rev 5524)
@@ -117,8 +117,10 @@
retval = retval && comp.performOk();
}
- // refresh the viewer
- JBossServerView.getDefault().refreshAll();
+ // refresh the viewer if it is opened
+ if (JBossServerView.getDefault() != null) {
+ JBossServerView.getDefault().refreshAll();
+ }
return retval;
}