diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-21 17:52:27 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-21 17:52:27 +1300 |
commit | da094cc974c545424c843d44d27711ac014d533d (patch) | |
tree | b02bb5dd1633089e69d2c9c96f38718eb00b2cfe /src/org/traccar/database | |
parent | 5328e632eaac60549cc901e2f17695f75fe4f8b9 (diff) | |
download | trackermap-server-da094cc974c545424c843d44d27711ac014d533d.tar.gz trackermap-server-da094cc974c545424c843d44d27711ac014d533d.tar.bz2 trackermap-server-da094cc974c545424c843d44d27711ac014d533d.zip |
Fix database deserialization issue
Diffstat (limited to 'src/org/traccar/database')
-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 9b25f72fc..5a4948de0 100644 --- a/src/org/traccar/database/QueryBuilder.java +++ b/src/org/traccar/database/QueryBuilder.java @@ -398,7 +398,7 @@ public final class QueryBuilder { String value = resultSet.getString(name); if (value != null) { try { - method.invoke(object, Context.getObjectMapper().readValue(value, parameterType.getClass())); + method.invoke(object, Context.getObjectMapper().readValue(value, parameterType)); } catch (InvocationTargetException | IllegalAccessException | IOException error) { Log.warning(error); } |