Change-Id: Ic21003e0441c3c24bd7e18a0c0d285e58158d2bb
Signed-off-by: Aleksandr Sapozhnik <a.sapozhnik@samsung.com>
char *BasicInfoItem::getText(Evas_Object *parent, const char *part)
{
if (strcmp(part, PART_NAME) == 0) {
- return strdup(m_Name.getValue());
+ return Utils::safeDup(m_Name.getValue());
} else if (strcmp(part, PART_PHONETIC_NAME) == 0) {
return strdup(m_PhoneticName.getValue().c_str());
} else if (strcmp(part, PART_COMPANY) == 0) {
void DialerView::onNavigation(bool isCurrentView)
{
Evas_Object *conf = findParent<Ui::Window>()->getConformant();
+ if (!conf) {
+ return;
+ }
if (isCurrentView) {
elm_object_signal_emit(conf, "elm,state,virtualkeypad,disable", "");
elm_object_signal_emit(conf, "elm,state,clipboard,disable", "");