Author: dgolovin
Date: 2007-07-20 03:17:25 -0400 (Fri, 20 Jul 2007)
New Revision: 2533
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
Log:
Fixing NullPointerException
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2007-07-19
18:13:34 UTC (rev 2532)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2007-07-20
07:17:25 UTC (rev 2533)
@@ -480,8 +480,8 @@
IResource r = project.getWorkspace().getRoot().findMember(p);
String s = r.getLocation().toString();
l.add(new java.io.File(s).getCanonicalPath());
- } catch (Exception e) {
- throw new Exception("Cannot find output for project " + project);
+ } catch (JavaModelException e) {
+ throw new Exception("Cannot find output for project " + project,e);
}
IClasspathEntry[] es = javaProject.getResolvedClasspath(true);
for (int i = 0; i < es.length; i++) {