if (msg) {
app_control_get_extra_data(msg, "msg", &app_msg);
- DBG(LOG_DEBUG, "Msg from app: %s", app_msg);
+ if (!app_msg) {
+ DBG(LOG_ERROR, "Failed to get app_msg");
+ __FUNC_EXIT__;
+ return;
+ }
+ DBG(LOG_DEBUG, "Msg from app: %s", app_msg);
if (!strcmp(app_msg, "destroy")) {
if (!ugd->rename_popup) {
DBG(LOG_INFO, "Destroying UG.");