Change-Id: Ic2361af3e640e93f22afb66405263257c3fc9410
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
len = buf.get_val<uint32_t>();
writer_->output_val("size", len);
- writer_->output_buf(buf.get_buf(len));
+ if (len)
+ writer_->output_buf(buf.get_buf(len));
}
void Protocol30::parse_context_switch_entry(Buffer &buf) const
len = SOCKET_SEND_SIZE;
writer_->output_val("message", "");
- writer_->output_buf(buf.get_buf(len));
+ if (len)
+ writer_->output_buf(buf.get_buf(len));
}
void Protocol30::parse_probe_gl(Buffer &buf) const