Author: rob.stryker(a)jboss.com
Date: 2008-10-20 15:45:16 -0400 (Mon, 20 Oct 2008)
New Revision: 11014
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
Log:
JBIDE-2746 - NPE when workspace root is the changed resource
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2008-10-20
19:37:59 UTC (rev 11013)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2008-10-20
19:45:16 UTC (rev 11014)
@@ -69,7 +69,8 @@
// TODO modify to make sure this file is a descriptor in use / registered
if( delta.getResource() != null && delta.getResource().getLocation() !=
null &&
delta.getResource().getLocation().lastSegment().equals(IArchiveModel.DEFAULT_PACKAGES_FILE))
{
- projects.add(delta.getResource().getProject());
+ if( delta.getResource().getProject() != null )
+ projects.add(delta.getResource().getProject());
}
return true;
}