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

Former-commit-id: 72021587e7 [formerly 565fbd1630] [formerly 80a750a72a] [formerly 72021587e7 [formerly 565fbd1630] [formerly 80a750a72a] [formerly a23fa4a1ae [formerly 80a750a72a [formerly bb9789c558f6abf2f75a146edc7a197784e3711b]]]]
Former-commit-id: a23fa4a1ae
Former-commit-id: 4d43c7518d [formerly b9b92baa12] [formerly 264f19cf2483ed87134297a74d668673d20b183c [formerly 641ae0393a]]
Former-commit-id: 80c0d0f33e8ad7a98332423574a5559e2f76358a [formerly 95d14fbdf0]
Former-commit-id: 5a9287ceda
This commit is contained in:
Richard Peter 2013-01-29 10:29:00 -06:00 committed by Gerrit Code Review
commit 9fef0449af

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);
}
}