topic case is Null or '\0'.
Change-Id: I216fd165145bd7523810e8636919c95f89470ef0
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11465
Reviewed-by: Chihyun Cho <ch79.cho@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abitha Shankar <abitha.s@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
{
if(subData->messageObId != 0)
{
- if(msg->topic)
+ if(msg->topic && (msg->topic)[0] != '\0')
{
NS_LOG_V(DEBUG, "this is topic message: %s", msg->topic);
#if(defined WITH_CLOUD && defined RD_CLIENT)
if(subData->remote_messageObId != 0)
{
- if(msg->topic)
+ if(msg->topic && (msg->topic)[0] != '\0')
{
NS_LOG_V(DEBUG, "this is topic message via remote server: %s", msg->topic);
if(NSProviderIsTopicSubScribed(consumerTopicList->head, subData->id, msg->topic))