sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r908780 - /sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
Date Thu, 11 Feb 2010 01:07:14 GMT
Author: justin
Date: Thu Feb 11 01:07:10 2010
New Revision: 908780

URL: http://svn.apache.org/viewvc?rev=908780&view=rev
Log:
fixing SLING-1367

Modified:
    sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java

Modified: sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java?rev=908780&r1=908779&r2=908780&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
(original)
+++ sling/trunk/bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java
Thu Feb 11 01:07:10 2010
@@ -229,8 +229,10 @@
                 setDefaultWorkspace(defaultWorkspace);
             }
 
-            // apply namespace mapping
-            this.loader.defineNamespacePrefixes(session);
+            if (this.loader != null) {
+                // apply namespace mapping
+                this.loader.defineNamespacePrefixes(session);
+            }
 
             // call post processors
             Object[] postProcessors = sessionConfigurerTracker.getServices();



Mime
View raw message