Browse Source

Fixed problem with sending null values from the client to the server

tags/7.0.0.alpha3
Artur Signell 12 years ago
parent
commit
d5ea720082
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/com/vaadin/terminal/gwt/server/JsonCodec.java

+ 6
- 2
src/com/vaadin/terminal/gwt/server/JsonCodec.java View File

@@ -143,8 +143,12 @@ public class JsonCodec implements Serializable {
}

// Try to decode object using fields
return decodeObject(targetType, (JSONObject) valueAndType.get(1),
application);
Object value = valueAndType.get(1);
if (value == JSONObject.NULL) {
return null;
} else {
return decodeObject(targetType, (JSONObject) value, application);
}
}

/**

Loading…
Cancel
Save