Author: rob.stryker(a)jboss.com
Date: 2007-10-29 12:52:03 -0400 (Mon, 29 Oct 2007)
New Revision: 4560
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
Log:
JBIDE-1199 workspace change listener NPE
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2007-10-29
16:28:12 UTC (rev 4559)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/WorkspaceChangeListener.java 2007-10-29
16:52:03 UTC (rev 4560)
@@ -54,7 +54,8 @@
try {
delta.accept(new IResourceDeltaVisitor() {
public boolean visit(IResourceDelta delta) throws CoreException {
- if( delta.getResource() != null &&
delta.getResource().getLocation().lastSegment().equals(ArchivesModel.PROJECT_PACKAGES_FILE))
{
+ if( delta.getResource() != null && delta.getResource().getLocation() != null
&&
+ delta.getResource().getLocation().lastSegment().equals(ArchivesModel.PROJECT_PACKAGES_FILE))
{
projects.add(delta.getResource().getProject());
}
return true;
Show replies by date