Author: rob.stryker(a)jboss.com
Date: 2012-10-03 05:58:12 -0400 (Wed, 03 Oct 2012)
New Revision: 44231
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
Log:
NPE JBIDE-12769
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2012-10-03
09:53:16 UTC (rev 44230)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2012-10-03
09:58:12 UTC (rev 44231)
@@ -172,8 +172,10 @@
}
addContextMenuContributions(node, manager);
}
- } else if( ProjectArchivesCommonView.getInstance().getCurrentProject() != null ){
- manager.add(newPackageManager);
+ } else {
+ ProjectArchivesCommonView v = ProjectArchivesCommonView.getInstance();
+ if( v != null && v.getCurrentProject() != null )
+ manager.add(newPackageManager);
}
}