summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-20 17:13:30 +0300
committerArtur Signell <artur@vaadin.com>2012-09-20 17:14:27 +0300
commit1ba5c8840334b343dd196d239303148d56fb2a72 (patch)
tree2ba3fed1f06c3522e65c3919ebfa1089bacca159 /server/src/com/vaadin
parent0a5795024d589ce09ebe6fc0179a9665826ca6e1 (diff)
downloadvaadin-framework-1ba5c8840334b343dd196d239303148d56fb2a72.tar.gz
vaadin-framework-1ba5c8840334b343dd196d239303148d56fb2a72.zip
Fixed comparison of null values (#9696)
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r--server/src/com/vaadin/server/JsonCodec.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/com/vaadin/server/JsonCodec.java b/server/src/com/vaadin/server/JsonCodec.java
index 72bd1e78f8..55e0fd69ed 100644
--- a/server/src/com/vaadin/server/JsonCodec.java
+++ b/server/src/com/vaadin/server/JsonCodec.java
@@ -739,6 +739,13 @@ public class JsonCodec implements Serializable {
* @return
*/
private static boolean jsonEquals(Object fieldValue, Object referenceValue) {
+ if (fieldValue == JSONObject.NULL) {
+ fieldValue = null;
+ }
+ if (referenceValue == JSONObject.NULL) {
+ referenceValue = null;
+ }
+
if (fieldValue == referenceValue) {
return true;
} else if (fieldValue == null || referenceValue == null) {