Author: dgolovin
Date: 2008-10-29 14:54:33 -0400 (Wed, 29 Oct 2008)
New Revision: 11305
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileAuxiliary.java
Log:
fix to get reid of exceptions model tests
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileAuxiliary.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileAuxiliary.java 2008-10-29
17:25:19 UTC (rev 11304)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/FileAuxiliary.java 2008-10-29
18:54:33 UTC (rev 11305)
@@ -39,7 +39,8 @@
}
public FileAnyAuxiliaryImpl getAuxiliaryFile(XModelObject folder, XModelObject main,
boolean create) {
- String name = getAuxiliaryName(main);
+ if(folder==null) return null;
+ String name = getAuxiliaryName(main);
String p = name + "." + extension;
XModelObject f = folder.getChildByPath(p);
if(!(f instanceof FileAnyAuxiliaryImpl)) {
Show replies by date