aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/QueryBuilder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-21 17:52:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-21 17:52:27 +1300
commitda094cc974c545424c843d44d27711ac014d533d (patch)
treeb02bb5dd1633089e69d2c9c96f38718eb00b2cfe /src/org/traccar/database/QueryBuilder.java
parent5328e632eaac60549cc901e2f17695f75fe4f8b9 (diff)
downloadtrackermap-server-da094cc974c545424c843d44d27711ac014d533d.tar.gz
trackermap-server-da094cc974c545424c843d44d27711ac014d533d.tar.bz2
trackermap-server-da094cc974c545424c843d44d27711ac014d533d.zip
Fix database deserialization issue
Diffstat (limited to 'src/org/traccar/database/QueryBuilder.java')
-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 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);
}