aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-18 10:49:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-18 10:49:40 +1300
commit5194dda39cbe7815da9946e0e6822ddc5d27ad3d (patch)
tree5acb53862d89213c584a9c613fcf05aaecb66ac7 /src/org/traccar
parent2776f3e5a7d837feff46c003ec32c162ac71b970 (diff)
downloadtrackermap-server-5194dda39cbe7815da9946e0e6822ddc5d27ad3d.tar.gz
trackermap-server-5194dda39cbe7815da9946e0e6822ddc5d27ad3d.tar.bz2
trackermap-server-5194dda39cbe7815da9946e0e6822ddc5d27ad3d.zip
Ignore null values in json object
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/web/JsonConverter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/web/JsonConverter.java b/src/org/traccar/web/JsonConverter.java
index b19894dd6..c01ce8bd6 100644
--- a/src/org/traccar/web/JsonConverter.java
+++ b/src/org/traccar/web/JsonConverter.java
@@ -66,7 +66,7 @@ public final class JsonConverter {
final String name = Introspector.decapitalize(method.getName().substring(3));
Class<?> parameterType = method.getParameterTypes()[0];
- if (json.containsKey(name)) {
+ if (json.containsKey(name) && !json.isNull(name)) {
try {
if (parameterType.equals(boolean.class)) {
method.invoke(object, json.getBoolean(name));