From c5fcf1a6f23c01690ca8643bd3a521ca6509ff75 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 22 Dec 2016 02:00:57 +1300 Subject: Check for empty string --- src/org/traccar/database/QueryBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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) { -- cgit v1.2.3