aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2021-03-05 14:03:39 +0200
committerGitHub <noreply@github.com>2021-03-05 14:03:39 +0200
commitff41bba3d7d0d8c02570b8dfccb413295e091708 (patch)
treea7bec2b5c0ebc9f7565d6c54112f52e21381f08c /server/src/main/java
parent46b5bf4a12f99499054b78f746ec7b31ecfe0308 (diff)
downloadvaadin-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.java2
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);
}
}