axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r478898 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
Date Fri, 24 Nov 2006 15:31:18 GMT
Author: davidillsley
Date: Fri Nov 24 07:31:17 2006
New Revision: 478898

URL: http://svn.apache.org/viewvc?view=rev&rev=478898
Log:
Prevent unlikely NPE

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java?view=diff&rev=478898&r1=478897&r2=478898
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/MessageContextBuilder.java
Fri Nov 24 07:31:17 2006
@@ -232,8 +232,10 @@
                         }
                         context.setTransportOut(transportOut);
                     }
-                    context.getOperationContext().setProperty(
-                            Constants.DIFFERENT_EPR, Constants.VALUE_TRUE);
+                    if(context.getOperationContext()!=null){
+                        context.getOperationContext().setProperty(
+                                Constants.DIFFERENT_EPR, Constants.VALUE_TRUE);
+                    }
                 }
             }
         } catch (URISyntaxException urise) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message