diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2021-03-05 14:17:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:17:20 +0200 |
commit | 384e98e10c627921f663b5037ec8c13e46969ca7 (patch) | |
tree | b5c3b4f41325af09a46406215f6ddec39eca6b63 | |
parent | 635d5cbeddfb73bccfbf8764094b493a595538dc (diff) | |
download | vaadin-framework-8.12.4.tar.gz vaadin-framework-8.12.4.zip |
* Prevent NPE in comparison (#12218)
Fixes: https://github.com/vaadin/framework/issues/12207
-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); } } |