Author: rob.stryker(a)jboss.com
Date: 2007-11-19 13:19:16 -0500 (Mon, 19 Nov 2007)
New Revision: 4976
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
Log:
JBIDE-1325 - null checks?
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2007-11-19
17:31:15 UTC (rev 4975)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2007-11-19
18:19:16 UTC (rev 4976)
@@ -204,8 +204,9 @@
public static IPath workspacePathToAbsolutePath (IPath workspacePath) {
String projectName = workspacePath.segment(0);
+ if( projectName == null ) return null;
IPath projectPath =
ArchivesCore.getInstance().getVariables().getProjectPath(projectName);
-
+ if( projectPath == null ) return null;
return projectPath.append(workspacePath.removeFirstSegments(1));
}
}
Show replies by date