commit | 02ef7da0ccd1014a1b5c84f09270820c29c864b8 | [log] [tgz] |
---|---|---|
author | jsholl <jsholl> | Mon Jan 18 22:52:07 2010 +0000 |
committer | jsholl <jsholl> | Mon Jan 18 22:52:07 2010 +0000 |
tree | daa60bef1d23b35496a6a20f0ca7ed6b05034ac8 | |
parent | 14174b8c8e4dff76491d953f4ee4471761b9e7a6 [diff] |
[nobug] guard against potential NPE if binary component is passed in.
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/util/ComponentUtilities.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/util/ComponentUtilities.java index 0ddeaf9..82836f1 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/util/ComponentUtilities.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/util/ComponentUtilities.java
@@ -115,7 +115,7 @@ public static IFile findFile(IVirtualComponent comp, IPath aPath) throws CoreException { - if (comp == null || aPath == null) + if (comp == null || aPath == null || comp.isBinary()) return null; IVirtualFolder root = comp.getRootFolder(); IVirtualResource file = root.findMember(aPath);