Add null check for exception handling 14/167814/1 accepted/tizen/unified/20180123.135405 submit/tizen/20180123.011900
authorYoungHun Kim <yh8004.kim@samsung.com>
Mon, 22 Jan 2018 07:53:40 +0000 (16:53 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 22 Jan 2018 07:53:55 +0000 (16:53 +0900)
Change-Id: Iccdfc25a9b90d126004e46ad26cd2d53fd89819b

packaging/mused.spec
server/src/muse_server_private.c

index aba3f77..bcabc5c 100644 (file)
@@ -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
index 30b5d54..9df8d11 100644 (file)
@@ -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;