diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-22 02:00:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-22 01:00:57 +1300 |
commit | c5fcf1a6f23c01690ca8643bd3a521ca6509ff75 (patch) | |
tree | 55345f6fda8c86bc11f8aa55077513e3d26bbe9c /src/org/traccar/database/QueryBuilder.java | |
parent | d8e016bc5fcb55f43fa0af676f977a99ebcb35b8 (diff) | |
download | trackermap-server-c5fcf1a6f23c01690ca8643bd3a521ca6509ff75.tar.gz trackermap-server-c5fcf1a6f23c01690ca8643bd3a521ca6509ff75.tar.bz2 trackermap-server-c5fcf1a6f23c01690ca8643bd3a521ca6509ff75.zip |
Check for empty string
Diffstat (limited to 'src/org/traccar/database/QueryBuilder.java')
-rw-r--r-- | src/org/traccar/database/QueryBuilder.java | 2 |
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) { |