Merge "Issue #1526 improved exception handling per code review comments" into development

Former-commit-id: bb9789c558f6abf2f75a146edc7a197784e3711b
This commit is contained in:
Richard Peter 2013-01-29 10:29:00 -06:00 committed by Gerrit Code Review
commit 80a750a72a

View file

@ -108,8 +108,8 @@ public class DynamicSerializeStreamEntity extends AbstractHttpEntity {
DynamicSerializationManager.getManager(SerializationType.Thrift)
.serialize(obj, os);
} catch (SerializationException e) {
throw new IOException("Error serializing " + obj.getClass()
+ " to stream", e);
throw new IOException("Error serializing "
+ (obj != null ? obj.getClass() : null) + " to stream", e);
}
}