geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1097438 - /geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/jaxws/addressing/policy/AddressingPolicyUtil.java
Date Thu, 28 Apr 2011 12:46:25 GMT
Author: xuhaihong
Date: Thu Apr 28 12:46:25 2011
New Revision: 1097438

URL: http://svn.apache.org/viewvc?rev=1097438&view=rev
Log:
Null check for the effective policy

Modified:
    geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/jaxws/addressing/policy/AddressingPolicyUtil.java

Modified: geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/jaxws/addressing/policy/AddressingPolicyUtil.java
URL: http://svn.apache.org/viewvc/geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/jaxws/addressing/policy/AddressingPolicyUtil.java?rev=1097438&r1=1097437&r2=1097438&view=diff
==============================================================================
--- geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/jaxws/addressing/policy/AddressingPolicyUtil.java
(original)
+++ geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/jaxws/addressing/policy/AddressingPolicyUtil.java
Thu Apr 28 12:46:25 2011
@@ -44,6 +44,9 @@ public class AddressingPolicyUtil {
     public static void configureAddressingPolicyFromWSDL(AxisService axisService, AxisConfiguration
axisConfiguration) {
         AxisBinding axisBinding = axisService.getEndpoint(axisService.getEndpointName()).getBinding();
         Policy policy = axisBinding.getEffectivePolicy();
+        if(policy == null) {
+            return;
+        }
         boolean addressingPolicyConfigured = false;
         boolean anonymousResponsesSupported = false;
         boolean nonAnonymousResponsesSupported = false;



Mime
View raw message