Skip to content

Commit

Permalink
Prevent NPE in comparison (#12218) (#12230)
Browse files Browse the repository at this point in the history
* Prevent NPE in comparison (#12218)

Fixes: #12207
  • Loading branch information
Ansku authored Mar 5, 2021
1 parent 635d5cb commit 384e98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/com/vaadin/data/Binder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ private BindingValidationStatus<TARGET> writeFieldValue(BEAN bean) {
setter.accept(bean, value);
if (value != null) {
FIELDVALUE converted = convertToFieldType(value);
if (!field.getValue().equals(converted)) {
if (!Objects.equals(field.getValue(), converted)) {
getField().setValue(converted);
}
}
Expand Down

0 comments on commit 384e98e

Please sign in to comment.