Permalink
Browse files

Survive when default ClientStub throws an exception

  • Loading branch information...
1 parent 00d3419 commit 25c0c61518bd645f802cfb225b4a5ae878c5b3cf Bruce Robbins committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 s4-core/src/main/java/io/s4/client/ClientStub.java
@@ -294,7 +294,7 @@ private void dispatchResponse(EventWrapper event) {
if (c != null && c.good() && c.clientReadMode.takePrivate()) {
try {
byte[] b = bytesFromEventWrapper(event);
- c.io.send(b);
+ if (b != null) c.io.send(b);
} catch (IOException e) {
logger.error("error sending response to client "

0 comments on commit 25c0c61

Please sign in to comment.