Skip to content

Commit

Permalink
fix: empty label exception should be labelCanNotBeNull() (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle-yuan authored Dec 30, 2022
1 parent eb7a65c commit fb48e83
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ public static final ElementKeys classifyKeys(Object... keyValues) {
.providedKeyValuesMustHaveALegalKeyOnEvenIndices();
}
if (val == null) {
if (key.equals(T.label)) {
throw Element.Exceptions.labelCanNotBeNull();
}
throw Property.Exceptions.propertyDoesNotExist();
}

Expand Down

0 comments on commit fb48e83

Please sign in to comment.