C++ Avoid crash in case of Invalid/Empty Payload
authoromkar <omkar.m.hegde@intel.com>
Fri, 9 Jan 2015 19:34:18 +0000 (11:34 -0800)
committerOmkar Hegde <omkar.m.hegde@intel.com>
Fri, 9 Jan 2015 20:39:30 +0000 (20:39 +0000)
commit43e5a4f0a42a739e93f65ccf31eff82df11144c3
treed49562a75917ecc5aaf86204fc8969f0adb45a9e
parent956cf68451e41dd074f6b6742e2cebf6e9a7bddf
C++ Avoid crash in case of Invalid/Empty Payload

This change is based on a bug reported by SHP wherein
they want to be able to send response with empty payload.
Instead of throwing an error, we now send an empty
OCRepresentation() object to the client callback.

Change-Id: I16f298bf8a0bdbb545e1133d751582f418991352
Signed-off-by: omkar <omkar.m.hegde@intel.com>
resource/src/InProcClientWrapper.cpp