Merge "Issue #1526 improved exception handling per code review comments" into development
Former-commit-id: bb9789c558f6abf2f75a146edc7a197784e3711b
This commit is contained in:
commit
80a750a72a
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ public class DynamicSerializeStreamEntity extends AbstractHttpEntity {
|
||||||
DynamicSerializationManager.getManager(SerializationType.Thrift)
|
DynamicSerializationManager.getManager(SerializationType.Thrift)
|
||||||
.serialize(obj, os);
|
.serialize(obj, os);
|
||||||
} catch (SerializationException e) {
|
} catch (SerializationException e) {
|
||||||
throw new IOException("Error serializing " + obj.getClass()
|
throw new IOException("Error serializing "
|
||||||
+ " to stream", e);
|
+ (obj != null ? obj.getClass() : null) + " to stream", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue