Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Jun 25, 2020
1 parent c692a2d commit 88c9662
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flow-server/src/main/java/com/vaadin/flow/dom/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,7 @@ public Element setProperty(String name, double value) {
// Distinct name so setProperty("foo", null) is not ambiguous
public Element setPropertyJson(String name, JsonValue value) {
if (value == null) {
throw new IllegalArgumentException(
"Json.createNull() must be used instead of null for JSON values");
throw new IllegalArgumentException(USE_SET_PROPERTY_WITH_JSON_NULL);
}

setRawProperty(name, value);
Expand Down

0 comments on commit 88c9662

Please sign in to comment.