elm_widget.c: Fixed warning while scrolling elementary_test using arrow

Summary: Checked whether object which direction pointed is NULL before getting it's data

Reviewers: seoz, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D95
This commit is contained in:
Ryuan Choi 2013-11-04 21:14:45 +09:00 committed by Carsten Haitzler (Rasterman)
parent 8b507ff3d2
commit 11b568a35b
1 changed files with 2 additions and 1 deletions

View File

@ -2512,7 +2512,8 @@ _elm_widget_focus_direction_get(Eo *obj, void *_pd, va_list *list)
((c_weight != 0.0) && (*weight != -1.0) &&
((int)(*weight * 1000000) <= (int)(c_weight * 1000000))))
{
if ((int)(*weight * 1000000) == (int)(c_weight * 1000000))
if (*direction &&
((int)(*weight * 1000000) == (int)(c_weight * 1000000)))
{
ELM_WIDGET_DATA_GET(*direction, sd1);
if (sd1)