Browse files

Survive when default ClientStub throws an exception

  • Loading branch information...
1 parent 25c0c61 commit 64a901f4bdea95101b9a40fffce393f10d19cb0a Bruce Robbins committed Nov 17, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java
View
5 s4-core/src/main/java/io/s4/client/GenericJsonClientStub.java
@@ -97,6 +97,11 @@ public EventWrapper eventWrapperFromBytes(byte[] v) {
logger.error("exception while converting event wrapper to bytes.",
e);
return null;
+ } catch (IllegalArgumentException iae) {
+ logger.error("exception while converting event wrapper to bytes.",
+ iae);
+ logger.error(obj);
+ return null;
}
}
}

0 comments on commit 64a901f

Please sign in to comment.