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

Former-commit-id: 80a750a72a [formerly 80a750a72a [formerly bb9789c558f6abf2f75a146edc7a197784e3711b]]
Former-commit-id: a23fa4a1ae
Former-commit-id: 641ae0393a
This commit is contained in:
Richard Peter 2013-01-29 10:29:00 -06:00 committed by Gerrit Code Review
commit 95d14fbdf0

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