From: Abhishek Sansanwal Date: Mon, 27 Aug 2018 06:18:28 +0000 (+0530) Subject: Return fail if found invited device list or channel list empty X-Git-Tag: submit/tizen/20190131.065036~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3777bd3a33ee27127171ea76474d0940ca82ae23;p=platform%2Fcore%2Fapi%2Fmulti-device-group.git Return fail if found invited device list or channel list empty Signed-off-by: Abhishek Sansanwal Change-Id: I6fb7f21406e5d548b39d1de8e2ec053eae189f13 --- diff --git a/test/mdg-manager.c b/test/mdg-manager.c index 83f6c75..f724307 100755 --- a/test/mdg-manager.c +++ b/test/mdg-manager.c @@ -817,6 +817,12 @@ static int __send_data(int devidx, int chaidx) char *address = NULL; mdg_device_h device = NULL; channel_t *channel = NULL; + + if (!found_invited_device_list || !found_channel_list) { + msgr("Find local device first"); + return RET_FAILURE; + } + if (found_invited_device_list) { device = g_list_nth_data(found_invited_device_list, devidx - 1); if (NULL == device) {