Skip to content

Commit bb5fcb9

Browse files
committed
minor exception change
1 parent 8923e90 commit bb5fcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightblue-ldap-crud/src/main/java/com/redhat/lightblue/crud/ldap/TranslatorFromJson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private void translate(JsonNodeCursor cursor, T target){
8585
FieldTreeNode fieldNode = md.resolve(path);
8686

8787
if (fieldNode == null) {
88-
throw new IllegalArgumentException(path.toString());
88+
throw new NullPointerException("No Metadata field found for: " + path.toString());
8989
}
9090

9191
if (fieldNode instanceof SimpleField) {

0 commit comments

Comments
 (0)