From a200832b4fb67d9921e658e6b30e0231e8729b46 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 28 Oct 2012 08:40:03 +0000 Subject: [PATCH] fix box crash SVN revision: 78575 --- src/bin/e_box.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/e_box.c b/src/bin/e_box.c index 1fbd797ba..fa3f6c83f 100644 --- a/src/bin/e_box.c +++ b/src/bin/e_box.c @@ -79,6 +79,7 @@ _e_box_item_nth_get(E_Smart_Data *sd, unsigned int n) unsigned int x; E_Box_Item *bi; + if (!sd->items) return NULL; if (n > sd->item_count / 2) { x = sd->item_count - 1;