aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-22 02:00:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-22 01:00:57 +1300
commitc5fcf1a6f23c01690ca8643bd3a521ca6509ff75 (patch)
tree55345f6fda8c86bc11f8aa55077513e3d26bbe9c /src/org
parentd8e016bc5fcb55f43fa0af676f977a99ebcb35b8 (diff)
downloadtrackermap-server-c5fcf1a6f23c01690ca8643bd3a521ca6509ff75.tar.gz
trackermap-server-c5fcf1a6f23c01690ca8643bd3a521ca6509ff75.tar.bz2
trackermap-server-c5fcf1a6f23c01690ca8643bd3a521ca6509ff75.zip
Check for empty string
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/QueryBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/QueryBuilder.java b/src/org/traccar/database/QueryBuilder.java
index 5a4948de0..9972bb74d 100644
--- a/src/org/traccar/database/QueryBuilder.java
+++ b/src/org/traccar/database/QueryBuilder.java
@@ -396,7 +396,7 @@ public final class QueryBuilder {
@Override
public void process(T object, ResultSet resultSet) throws SQLException {
String value = resultSet.getString(name);
- if (value != null) {
+ if (value != null && !value.isEmpty()) {
try {
method.invoke(object, Context.getObjectMapper().readValue(value, parameterType));
} catch (InvocationTargetException | IllegalAccessException | IOException error) {