This commit is contained in:
Luigi Andrea Pascarelli
2016-03-02 12:16:21 +01:00
parent a9811eefeb
commit 11aae8b2d8

View File

@@ -273,7 +273,7 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
// XXX FIXME? can't throw a "real" exception here without changing all the callers to expect it, so use a runtime exception
if (authorityRequired && (metadataValue.getAuthority() == null || metadataValue.getAuthority().length() == 0))
{
throw new IllegalArgumentException("The metadata field \"" + metadataField.toString() + "\" requires an authority key but none was provided. Vaue=\"" + values.get(i) + "\"");
throw new IllegalArgumentException("The metadata field \"" + metadataField.toString() + "\" requires an authority key but none was provided. Value=\"" + values.get(i) + "\"");
}
}
if (values.get(i) != null)