aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/BaseServlet.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-30 22:54:13 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-30 22:54:13 +1200
commitd6662317306b79717f9d3a1df30fc83cb87866ce (patch)
treea967be6a30f802562fe0030c103b37cd06d438d4 /src/org/traccar/http/BaseServlet.java
parent1ac0692d07898889156a18848a23d6af889fa6c5 (diff)
downloadtrackermap-server-d6662317306b79717f9d3a1df30fc83cb87866ce.tar.gz
trackermap-server-d6662317306b79717f9d3a1df30fc83cb87866ce.tar.bz2
trackermap-server-d6662317306b79717f9d3a1df30fc83cb87866ce.zip
Fix async servlet problem
Diffstat (limited to 'src/org/traccar/http/BaseServlet.java')
-rw-r--r--src/org/traccar/http/BaseServlet.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/http/BaseServlet.java b/src/org/traccar/http/BaseServlet.java
index 9dba2e647..89eefc11c 100644
--- a/src/org/traccar/http/BaseServlet.java
+++ b/src/org/traccar/http/BaseServlet.java
@@ -34,8 +34,11 @@ public abstract class BaseServlet extends HttpServlet {
@Override
protected final void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String command = req.getPathInfo();
+ if (command == null) {
+ command = "";
+ }
try {
- if (command == null || !handle(command, req, resp)) {
+ if (!handle(command, req, resp)) {
resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
}
} catch (Exception error) {