update exception handling code.
authorMinho Kim <minho07.kim@samsung.com>
Wed, 6 Feb 2013 10:14:46 +0000 (19:14 +0900)
committerMinho Kim <minho07.kim@samsung.com>
Wed, 6 Feb 2013 10:14:46 +0000 (19:14 +0900)
src/_logic.c

index 9e7c077..fc39cb2 100755 (executable)
@@ -947,9 +947,16 @@ int _app_reset(bundle *b, void *data)
        else
        {
                block = _add_layout(win, EDJ_APP, GRP_VOLUME_BLOCKEVENTS);
+               retvm_if(block == NULL, -1, "Failed to add block layout\n");
+
                edje_object_signal_callback_add(elm_layout_edje_get(block), "clicked", "*", _block_clicked_cb, ad);
+
                outer = _add_layout(win, EDJ_APP, GRP_VOLUME_LAYOUT);
+               retvm_if(outer == NULL, -1, "Failed to add outer layout\n");
+
                inner = _add_layout(win, EDJ_APP, GRP_VOLUME_CONTENT);
+               retvm_if(inner == NULL, -1, "Failed to add inner layout\n");
+
                ad->block_events = block;
                ad->ly = outer;