Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2014-09-03 21:31:08 -0400
committerJan Bartel2014-09-03 21:31:08 -0400
commit51715dbcdb65b573633011e0f2e9746d1f324988 (patch)
tree124e52d01b445e755cb814e4dea75c53bf7aefa7 /jetty-nosql
parenta1587d807ed77b25b4be2a54e0b709ba180b232d (diff)
downloadorg.eclipse.jetty.project-51715dbcdb65b573633011e0f2e9746d1f324988.tar.gz
org.eclipse.jetty.project-51715dbcdb65b573633011e0f2e9746d1f324988.tar.xz
org.eclipse.jetty.project-51715dbcdb65b573633011e0f2e9746d1f324988.zip
443231 java.lang.NullPointerException on scavenge scheduling when session id manager declared before shared scheduler
Diffstat (limited to 'jetty-nosql')
-rw-r--r--jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java
index e599b27149..18d44061c3 100644
--- a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java
+++ b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionIdManager.java
@@ -416,7 +416,10 @@ public class MongoSessionIdManager extends AbstractSessionIdManager
_scheduler = new ScheduledExecutorScheduler();
_ownScheduler = true;
_scheduler.start();
- }
+ }
+ else if (!_scheduler.isStarted())
+ throw new IllegalStateException("Shared scheduler not started");
+
//setup the scavenger thread
if (_scavengePeriod > 0)

Back to the top