Author: rob.stryker(a)jboss.com
Date: 2012-10-11 04:43:36 -0400 (Thu, 11 Oct 2012)
New Revision: 44421
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
Log:
simple NPE when shutting down workspace...
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2012-10-11
08:19:12 UTC (rev 44420)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2012-10-11
08:43:36 UTC (rev 44421)
@@ -72,7 +72,11 @@
public void dispose() {
super.dispose();
-
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().removePostSelectionListener(selectionListener);
+ try {
+
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().removePostSelectionListener(selectionListener);
+ } catch(NullPointerException npe) {
+ // Seriously ignore, don't feel like 5 null checks
+ }
PrefsInitializer.removeListener(this);
}
Show replies by date