diff options
author | Tatu Lund <tatu@vaadin.com> | 2021-03-05 14:03:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:03:39 +0200 |
commit | ff41bba3d7d0d8c02570b8dfccb413295e091708 (patch) | |
tree | a7bec2b5c0ebc9f7565d6c54112f52e21381f08c /server/src/main/java | |
parent | 46b5bf4a12f99499054b78f746ec7b31ecfe0308 (diff) | |
download | vaadin-framework-ff41bba3d7d0d8c02570b8dfccb413295e091708.tar.gz vaadin-framework-ff41bba3d7d0d8c02570b8dfccb413295e091708.zip |
Prevent NPE in comparison (#12218)
Fixes: https://github.com/vaadin/framework/issues/12207
Diffstat (limited to 'server/src/main/java')
-rw-r--r-- | server/src/main/java/com/vaadin/data/Binder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java index c41461f729..8a11cc36ee 100644 --- a/server/src/main/java/com/vaadin/data/Binder.java +++ b/server/src/main/java/com/vaadin/data/Binder.java @@ -1286,7 +1286,7 @@ public class Binder<BEAN> implements Serializable { 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); } } |