axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r377295 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
Date Mon, 13 Feb 2006 03:46:35 GMT
Author: dims
Date: Sun Feb 12 19:46:31 2006
New Revision: 377295

URL: http://svn.apache.org/viewcvs?rev=377295&view=rev
Log:
prevent NPE's

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java?rev=377295&r1=377294&r2=377295&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/AxisServiceBuilder.java
Sun Feb 12 19:46:31 2006
@@ -372,11 +372,15 @@
                     addPolicyElements(PolicyInclude.OUTPUT_POLICY,
                             outputPolicies, outputPolicyInclude);
 
-                    // BindingOutput
-                    outputPolicies = getPoliciesAsExtElements(wsdl4jBindingOutput
-                            .getExtensibilityElements());
-                    addPolicyElements(PolicyInclude.BINDING_OUTPUT_POLICY,
-                            outputPolicies, outputPolicyInclude);
+                    if (wsdl4jBindingOutput != null) {
+                        // BindingOutput
+                        outputPolicies = getPoliciesAsExtElements(wsdl4jBindingOutput
+                                .getExtensibilityElements());
+                        if (outputPolicies != null) {
+                            addPolicyElements(PolicyInclude.BINDING_OUTPUT_POLICY, 
+                                    outputPolicies, outputPolicyInclude);
+                        }
+                    }
 
                     // wsdl:Message
                     outputPolicies = getPoliciesAsExtElements(wsdl4jOutputMessage



Mime
View raw message