jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r157916 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/WorkspaceConfig.java
Date Thu, 17 Mar 2005 08:47:20 GMT
Author: jukka
Date: Thu Mar 17 00:47:16 2005
New Revision: 157916

URL: http://svn.apache.org/viewcvs?view=rev&rev=157916
Log:
Fixed NPE in WorkspaceConfig.init() when SearchConfig is not available. (JCR-71)

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/WorkspaceConfig.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/WorkspaceConfig.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/WorkspaceConfig.java?view=diff&r1=157915&r2=157916
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/WorkspaceConfig.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/WorkspaceConfig.java
Thu Mar 17 00:47:16 2005
@@ -50,7 +50,7 @@
     private PersistenceManagerConfig pmc;
 
     /**
-     * Workspace search index configuration.
+     * Workspace search index configuration. Can be <code>null</code>.
      */
     private SearchConfig sc;
 
@@ -79,7 +79,9 @@
      */
     public void init() throws ConfigurationException {
         fsc.init();
-        sc.init();
+        if (sc != null) {
+            sc.init();
+        }
     }
 
     /**



Mime
View raw message