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