Author: fbricon
Date: 2012-10-02 06:09:36 -0400 (Tue, 02 Oct 2012)
New Revision: 44208
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java
Log:
https://community.jboss.org/message/761721/ more robust null check
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java 2012-10-02
10:07:50 UTC (rev 44207)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ExportedClassFolderReferenceResolver.java 2012-10-02
10:09:36 UTC (rev 44208)
@@ -33,9 +33,11 @@
public boolean canResolve(IVirtualComponent context,
ReferencedComponent referencedComponent) {
URI handle = referencedComponent.getHandle();
- String s = handle.toString();
- if(s != null && s.startsWith(OUTPUT_FOLDER_PROTOCOL))
- return true;
+ if (handle != null) {
+ String s = handle.toString();
+ if(s.startsWith(OUTPUT_FOLDER_PROTOCOL))
+ return true;
+ }
return false;
}