Fixed NULL pointer bug.
authorsanghoon80.cho <sanghoon80.cho@samsung.com>
Sun, 22 Aug 2010 14:49:34 +0000 (23:49 +0900)
committersanghoon80.cho <sanghoon80.cho@samsung.com>
Sun, 22 Aug 2010 14:49:34 +0000 (23:49 +0900)
src/lib/elm_calendar.c

index 1e09d4d..9d5839e 100755 (executable)
@@ -168,6 +168,9 @@ _mouse_down_cb(void* data, Evas* evas, Evas_Object* obj, void* event_info)
        evas_object_geometry_get( obj, &x, &y, &w, &h );
 
        text = edje_object_part_text_get( _EDJ(obj), "month_mday_text" );
+       if( text == NULL )
+               return;
+
        day = atoi(text);
        if( day > 0 && day < 32 )
        {