Author: rob.stryker(a)jboss.com
Date: 2010-10-26 06:21:02 -0400 (Tue, 26 Oct 2010)
New Revision: 26060
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVFS.java
Log:
JBIDE-7108 - bad if-statement
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVFS.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVFS.java 2010-10-26
10:14:19 UTC (rev 26059)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspaceVFS.java 2010-10-26
10:21:02 UTC (rev 26060)
@@ -31,7 +31,7 @@
public IPath[] getWorkspaceChildren(IPath path) {
IResource res = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
- if( res != null || !(res instanceof IContainer)) {
+ if( res != null && res instanceof IContainer) {
try {
IResource[] resources = ((IContainer)res).members();
IPath[] paths = new IPath[resources.length];