resolves NIHVIVO-102 'Cannot remove classgroup assertion for Class

This commit is contained in:
bjl23 2010-03-26 19:32:05 +00:00
parent 174ca4dbcb
commit 5051879764

View file

@ -504,7 +504,9 @@ public class JenaBaseDao extends JenaBaseDaoCon {
protected void updatePropertyResourceURIValue(Resource res, Property prop, String uri, Model model) { protected void updatePropertyResourceURIValue(Resource res, Property prop, String uri, Model model) {
if (prop != null) { if (prop != null) {
if (uri == null) { if (uri == null || uri.length() == 0) {
// the empty string test is due to a deficiency in the
// backend editing where empty strings are treated as nulls
model.removeAll(res, prop, null); model.removeAll(res, prop, null);
} else { } else {
String badURIErrorStr = checkURI(uri); String badURIErrorStr = checkURI(uri);