cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1358270 - /cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/state/EHCacheSPStateManager.java
Date Fri, 06 Jul 2012 15:34:02 GMT
Author: sergeyb
Date: Fri Jul  6 15:34:01 2012
New Revision: 1358270

URL: http://svn.apache.org/viewvc?rev=1358270&view=rev
Log:
Checking if bus is null earlier

Modified:
    cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/state/EHCacheSPStateManager.java

Modified: cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/state/EHCacheSPStateManager.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/state/EHCacheSPStateManager.java?rev=1358270&r1=1358269&r2=1358270&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/state/EHCacheSPStateManager.java
(original)
+++ cxf/trunk/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/state/EHCacheSPStateManager.java
Fri Jul  6 15:34:01 2012
@@ -69,6 +69,10 @@ public class EHCacheSPStateManager imple
     }
     
     private void createCaches(String configFile, Bus bus) {
+        if (bus == null) {
+            bus = BusFactory.getThreadDefaultBus(true);
+        }
+        
         URL configFileURL = null;
         try {
             configFileURL = 
@@ -76,9 +80,6 @@ public class EHCacheSPStateManager imple
         } catch (Exception ex) {
             // ignore
         }
-        if (bus == null) {
-            bus = BusFactory.getThreadDefaultBus(true);
-        }
         if (configFileURL == null) {
             cacheManager = CacheManager.create();
         } else {



Mime
View raw message