if range uri is null, error message for null rangeVClass should not be thrown

This commit is contained in:
hudajkhan 2013-12-06 16:44:47 -05:00
parent 3aca74a7ee
commit b0c0c71cdb

View file

@ -117,10 +117,11 @@ public class DefaultObjectPropertyFormGenerator implements EditConfigurationGene
if(rangeUri != null && !rangeUri.isEmpty()) {
WebappDaoFactory ctxDaoFact = vreq.getLanguageNeutralWebappDaoFactory();
rangeVClass = ctxDaoFact.getVClassDao().getVClassByURI(rangeUri);
}
if(rangeVClass == null) {
errorMessages = I18n.text(vreq,"the_range_class_does_not_exist");
}
}
return errorMessages;
}