Author: vrubezhny
Date: 2009-02-27 12:25:46 -0500 (Fri, 27 Feb 2009)
New Revision: 13891
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/AbstractHyperlink.java
Log:
JBIDE-3886 java.lang.NullPointerException when use OpenOn feature in faces-config.xml from
jars opened with JBoss Tools XML Editor.
Issue is fixed
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/AbstractHyperlink.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/AbstractHyperlink.java 2009-02-27
16:21:15 UTC (rev 13890)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/AbstractHyperlink.java 2009-02-27
17:25:46 UTC (rev 13891)
@@ -117,7 +117,7 @@
IPath path = new Path(wsRelativePath);
IResource r = ModelPlugin.getWorkspace().getRoot().findMember(
path);
- if (r.exists() && r instanceof IFile)
+ if (r != null && r.exists() && r instanceof IFile)
return (IFile) r;
}
String path = Platform.getLocation().append(wsRelativePath)
Show replies by date