Author: lektran
Date: Mon Jun 4 23:31:09 2007
New Revision: 544404
URL:
http://svn.apache.org/viewvc?view=rev&rev=544404Log:
Applied fix from trunk for revision: 539691
Modified:
ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/model/ModelReader.java
Modified: ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/model/ModelReader.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/model/ModelReader.java?view=diff&rev=544404&r1=544403&r2=544404==============================================================================
--- ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/model/ModelReader.java (original)
+++ ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/model/ModelReader.java Mon Jun 4 23:31:09 2007
@@ -256,6 +256,7 @@
Element extendEntityElement = (Element) tempExtendEntityElementIter.next();
String entityName = UtilXml.checkEmpty(extendEntityElement.getAttribute("entity-name"));
ModelEntity modelEntity = (ModelEntity) entityCache.get(entityName);
+ if (modelEntity == null) throw new GenericEntityConfException("Entity to extend does not exist: " + entityName);
modelEntity.addExtendEntity(this, extendEntityElement);
}