activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r1327388 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Date Wed, 18 Apr 2012 07:01:51 GMT
Author: rajdavies
Date: Wed Apr 18 07:01:50 2012
New Revision: 1327388

URL: http://svn.apache.org/viewvc?rev=1327388&view=rev
Log:
For https://issues.apache.org/jira/browse/AMQ-3573 In junit tests -  fixed null pointer if
the directory doesn't exist

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=1327388&r1=1327387&r2=1327388&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Wed Apr 18 07:01:50 2012
@@ -1713,8 +1713,9 @@ public class BrokerService implements Se
         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);
                 }



Mime
View raw message