[access.c] Info is checked for null.
authorSubodh Kumar <s7158.kumar@samsung.com>
Wed, 26 Jun 2013 11:12:13 +0000 (16:42 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Fri, 28 Jun 2013 10:51:12 +0000 (19:51 +0900)
Change-Id: I8f94c4709c8c2766a0d8a1513b08f693c4285cdf

src/lib/elm_access.c

index cddce8e..44d8ca7 100644 (file)
@@ -973,11 +973,11 @@ _elm_access_highlight_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
         Evas_Object *comming = NULL;
         if (type == ELM_ACCESS_ACTION_HIGHLIGHT_NEXT)
           {
-             if (info->next) comming = info->next;
+             if ((info) && (info->next)) comming = info->next;
           }
         else
           {
-             if (info->prev) comming = info->prev;
+             if ((info) && (info->prev)) comming = info->prev;
           }
         if (comming)
           {