axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r360243 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/PolicyUtil.java
Date Sat, 31 Dec 2005 05:14:31 GMT
Author: dims
Date: Fri Dec 30 21:14:29 2005
New Revision: 360243

URL: http://svn.apache.org/viewcvs?rev=360243&view=rev
Log:
defensive NPE checks

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/PolicyUtil.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/PolicyUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/PolicyUtil.java?rev=360243&r1=360242&r2=360243&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/PolicyUtil.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/PolicyUtil.java Fri
Dec 30 21:14:29 2005
@@ -106,6 +106,9 @@
     private static void populatePolicy(
             WSDLBindingMessageReference wsdlBindingMsgReference,
             AxisMessage axisMessage) {
+        if(axisMessage == null || axisMessage.getPolicyInclude() == null) {
+            return;
+        }
         Policy messagePolicy = axisMessage.getPolicyInclude().getPolicy();
 
         if (messagePolicy != null) {



Mime
View raw message