Fixed UnitTest crash when getting JSON from blank object
authorErich Keane <erich.keane@intel.com>
Wed, 10 Dec 2014 21:52:15 +0000 (13:52 -0800)
committerErich Keane <erich.keane@intel.com>
Wed, 10 Dec 2014 21:52:15 +0000 (13:52 -0800)
commitacf70a88f0b75134a85fcac741dc832ec46c23d8
treef9e2c84a480c68e3051b8a40b494a15cbbbc754a
parentb97ab62aa50a692bd13f7f4cd3808fed05c5e9ea
Fixed UnitTest crash when getting JSON from blank object

Generating a JSON representation from a blank object is an error
condition, so we were crashing.  The unit tests validated this
situation, so this fix returns the correct value in that situation.

Additionally corrected a comment highlighted in a previous review.

Change-Id: I113bf0ad53bb939d90278928257ff7b56aa4959b
Signed-off-by: Erich Keane <erich.keane@intel.com>
resource/src/OCRepresentation.cpp