cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1502082 - /cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/NettyHttpDestination.java
Date Thu, 11 Jul 2013 01:09:33 GMT
Author: dkulp
Date: Thu Jul 11 01:09:33 2013
New Revision: 1502082

URL: http://svn.apache.org/r1502082
Log:
Fix NPE on server side

Modified:
    cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/NettyHttpDestination.java

Modified: cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/NettyHttpDestination.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/NettyHttpDestination.java?rev=1502082&r1=1502081&r2=1502082&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/NettyHttpDestination.java
(original)
+++ cxf/trunk/rt/transports/http-netty/netty-server/src/main/java/org/apache/cxf/transport/http/netty/server/NettyHttpDestination.java
Thu Jul 11 01:09:33 2013
@@ -196,13 +196,13 @@ public class NettyHttpDestination extend
 
         if (inMessage == null) {
 
+            ExchangeImpl exchange = new ExchangeImpl();
             inMessage = new MessageImpl();
+            exchange.setInMessage(inMessage);
             setupMessage(inMessage, context, req, resp);
 
             ((MessageImpl) inMessage).setDestination(this);
 
-            ExchangeImpl exchange = new ExchangeImpl();
-            exchange.setInMessage(inMessage);
             exchange.setSession(new HTTPSession(req));
         }
 



Mime
View raw message