aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-04-15 21:32:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-04-15 21:32:28 +1200
commit6439ce3fa3a58150b88f074c5498627b7e14f79a (patch)
tree2a2845c8ce056e37a31eb02462a3c60caed730ad /src/org/traccar
parentcce90872fe9bbdfaa26e90cd0f9dbc97a74bf495 (diff)
downloadtrackermap-web-6439ce3fa3a58150b88f074c5498627b7e14f79a.tar.gz
trackermap-web-6439ce3fa3a58150b88f074c5498627b7e14f79a.tar.bz2
trackermap-web-6439ce3fa3a58150b88f074c5498627b7e14f79a.zip
Increase session timeout
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/web/server/model/DataServiceImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/web/server/model/DataServiceImpl.java b/src/org/traccar/web/server/model/DataServiceImpl.java
index eb466694..c2ebce15 100644
--- a/src/org/traccar/web/server/model/DataServiceImpl.java
+++ b/src/org/traccar/web/server/model/DataServiceImpl.java
@@ -108,7 +108,11 @@ public class DataServiceImpl extends RemoteServiceServlet implements DataService
private User getSessionUser() {
HttpSession session = getThreadLocalRequest().getSession();
- return (User) session.getAttribute(ATTRIBUTE_USER);
+ User user = (User) session.getAttribute(ATTRIBUTE_USER);
+ if (user == null) {
+ throw new IllegalStateException();
+ }
+ return user;
}
@Override