https://issues.apache.org/jira/browse/AMQ-3024 - guard against null from stomp tests, npe regression

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1518123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2013-08-28 09:31:40 +00:00
parent e8ea6cd95c
commit 8635a06e4a
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ public class SchedulerBroker extends BrokerFilter implements JobListener {
protected synchronized JobScheduler getInternalScheduler() throws Exception {
if (this.started.get()) {
if (this.scheduler == null) {
if (this.scheduler == null && store != null) {
this.scheduler = store.getJobScheduler("JMS");
this.scheduler.addListener(this);
this.scheduler.startDispatching();