diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java index 87f4b14459..34a6bc5b8a 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java @@ -1713,8 +1713,9 @@ public class BrokerService implements Service { if (getPersistenceAdapter() != null) { PersistenceAdapter adapter = getPersistenceAdapter(); File dir = adapter.getDirectory(); - String dirPath = dir.getAbsolutePath(); + if (dir != null) { + String dirPath = dir.getAbsolutePath(); if (!dir.isAbsolute()) { dir = new File(dirPath); }