diff --git a/src/gui/components/cc_button_select.cpp b/src/gui/components/cc_button_select.cpp index f965e3478..73561ad8c 100644 --- a/src/gui/components/cc_button_select.cpp +++ b/src/gui/components/cc_button_select.cpp @@ -67,8 +67,10 @@ void CCButtonSelect::setSelectedButton( size_t item_id, btn->setButtonTextColor(text_col); } } - if (!btn) - dprintf(DEBUG_NORMAL, "\033[33m[CCButtonSelect]\t[%s - %d], no button object found...\033[0m\n", __func__, __LINE__); + if (!btn){ + dprintf(DEBUG_NORMAL, "\033[31m[CCButtonSelect]\t[%s - %d], ERROR: btn_container size = %d, no button object available...\033[0m\n", __func__, __LINE__, (int)btn_container->size()); + return; + } fb_pixel_t sel_col = fr_col; if (btn_container->size() > 1) diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index c9883257f..394a89534 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -711,6 +711,8 @@ CComponentsItem* CComponentsForm::getSelectedItemObject() const CComponentsItem* ret = NULL; if (sel != -1) ret = static_cast(this->getCCItem(sel)); + else + dprintf(DEBUG_NORMAL, "\033[31m[CComponentsForm]\t[%s - %d], ERROR: no item object found...\033[0m\n", __func__, __LINE__); return ret; }