From 894b6a574fa0a4cc8366c2a11e5b0c0e30e4ea00 Mon Sep 17 00:00:00 2001 From: Nate Jensen Date: Tue, 29 Jan 2013 09:25:19 -0600 Subject: [PATCH] Issue #1526 improved exception handling per code review comments Change-Id: I9dd95cd3d130ee8a0bbc617af62b9f7f879548a7 Former-commit-id: 8e90784e7126aac81aef229a9d969891c52afc95 [formerly d155f573c9cb94b7491667a55473bfe510d8aee3] [formerly 471dd021431fc6947db2354da870df7608125494] [formerly 530fdbe151292f7ac594e01f9de6ebd90f2305cc [formerly 471dd021431fc6947db2354da870df7608125494 [formerly 6abffb7aeb4011db9f6380fc644312b408bb75fa]]] Former-commit-id: 530fdbe151292f7ac594e01f9de6ebd90f2305cc Former-commit-id: ad1fb77c31579ecb8b7b6e3561db673a9d9913f2 [formerly d23305569625f5c2cc5612431ab3aff66379b178] Former-commit-id: 2c85ed97e3fc771e8923a612496ed0885144ea73 --- .../uf/common/comm/stream/DynamicSerializeStreamEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edexOsgi/com.raytheon.uf.common.comm/src/com/raytheon/uf/common/comm/stream/DynamicSerializeStreamEntity.java b/edexOsgi/com.raytheon.uf.common.comm/src/com/raytheon/uf/common/comm/stream/DynamicSerializeStreamEntity.java index ce1e54045c..d1c2162c4a 100644 --- a/edexOsgi/com.raytheon.uf.common.comm/src/com/raytheon/uf/common/comm/stream/DynamicSerializeStreamEntity.java +++ b/edexOsgi/com.raytheon.uf.common.comm/src/com/raytheon/uf/common/comm/stream/DynamicSerializeStreamEntity.java @@ -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); } }