aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/ServerServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/ServerServlet.java')
-rw-r--r--src/org/traccar/web/ServerServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/web/ServerServlet.java b/src/org/traccar/web/ServerServlet.java
index 7ed096bc6..b0ee181da 100644
--- a/src/org/traccar/web/ServerServlet.java
+++ b/src/org/traccar/web/ServerServlet.java
@@ -44,7 +44,7 @@ public class ServerServlet extends BaseServlet {
}
private void update(HttpServletRequest req, HttpServletResponse resp) throws Exception {
- Server server = JsonConverter.objectFromJson(req.getReader(), new Server());
+ Server server = JsonConverter.objectFromJson(req.getReader(), Server.class);
Context.getPermissionsManager().checkAdmin(getUserId(req));
Context.getDataManager().updateServer(server);
sendResponse(resp.getWriter(), true);