Author: markt Date: Sat Dec 12 22:10:57 2015 New Revision: 1719744 URL: http://svn.apache.org/viewvc?rev=1719744&view=rev Log: Avoid NPE causing failure in TestWsSubprotocols
Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java Modified: tomcat/tc8.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java URL: http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java?rev=1719744&r1=1719743&r2=1719744&view=diff ============================================================================== --- tomcat/tc8.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java (original) +++ tomcat/tc8.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java Sat Dec 12 22:10:57 2015 @@ -539,7 +539,7 @@ public abstract class WsRemoteEndpointIm private void handleSendFailureWithEncode(Throwable t) throws IOException, EncodeException { // First, unwrap any execution exception - if (t instanceof ExecutionException) { + if (t instanceof ExecutionException && t.getCause() != null) { t = t.getCause(); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org