cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r471660 - /incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
Date Mon, 06 Nov 2006 07:43:55 GMT
Author: tli
Date: Sun Nov  5 23:43:54 2006
New Revision: 471660

URL: http://svn.apache.org/viewvc?view=rev&rev=471660
Log:
CXF-177 add null check

Modified:
    incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java

Modified: incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java?view=diff&rev=471660&r1=471659&r2=471660
==============================================================================
--- incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
(original)
+++ incubator/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/ContextUtils.java
Sun Nov  5 23:43:54 2006
@@ -106,10 +106,16 @@
     * @return true iff the message direction is outbound
     */
     public static boolean isOutbound(Message message) {
+        if (message == null) {
+            return false;
+        }
+        
         Exchange exchange = message.getExchange();
+        
         return message != null
                && exchange != null
                && message == exchange.getOutMessage();
+        
     }
 
    /**



Mime
View raw message