Author: lresende
Date: Tue May  5 07:17:51 2009
New Revision: 771598

URL: http://svn.apache.org/viewvc?rev=771598&view=rev
Log:
Fixing NPE when no operation provided when creating invoker

Modified:
    
tuscany/branches/sca-java-1.x/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java

Modified: 
tuscany/branches/sca-java-1.x/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java?rev=771598&r1=771597&r2=771598&view=diff
==============================================================================
--- 
tuscany/branches/sca-java-1.x/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
 (original)
+++ 
tuscany/branches/sca-java-1.x/modules/policy-security-http/src/main/java/org/apache/tuscany/sca/policy/security/http/LDAPRealmAuthenticationServicePolicyProvider.java
 Tue May  5 07:17:51 2009
@@ -59,7 +59,12 @@
     }
 
     public Interceptor createInterceptor(Operation operation) {
-        List<LDAPRealmAuthenticationPolicy> policies = findPolicies(operation);
+        List<LDAPRealmAuthenticationPolicy> policies = null;
+
+        if (operation != null) {
+            policies = findPolicies(operation);
+        }
+
         if (policies == null || policies.isEmpty()) {
             return null;
         } else {


Reply via email to