From: YoungHun Kim Date: Mon, 22 Jan 2018 07:53:40 +0000 (+0900) Subject: Add null check for exception handling X-Git-Tag: accepted/tizen/unified/20180123.135405^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd57601f347edbccee87b5888ee8f89b6087d05d;p=platform%2Fcore%2Fmultimedia%2Fmmsvc-core.git Add null check for exception handling Change-Id: Iccdfc25a9b90d126004e46ad26cd2d53fd89819b --- diff --git a/packaging/mused.spec b/packaging/mused.spec index aba3f77..bcabc5c 100644 --- a/packaging/mused.spec +++ b/packaging/mused.spec @@ -1,6 +1,6 @@ Name: mused Summary: A multimedia daemon -Version: 0.3.28 +Version: 0.3.29 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/server/src/muse_server_private.c b/server/src/muse_server_private.c index 30b5d54..9df8d11 100644 --- a/server/src/muse_server_private.c +++ b/server/src/muse_server_private.c @@ -308,6 +308,11 @@ static gboolean _ms_connection_handler(GIOChannel *source, GIOCondition conditio for (idx = 0; idx < len; idx++) { peeked_m = (muse_module_h)g_queue_peek_nth(instance_queue, idx); + if (!peeked_m) { + LOGW("%d's th module of queue is NULL", idx); + continue; + } + if (peeked_m->pid != pid) continue;