diff -r 42506e19eb6b -r 25e5390cce41 ui/common/object.c --- a/ui/common/object.c Fri Jun 13 10:39:54 2014 +0200 +++ b/ui/common/object.c Tue Jul 22 09:51:17 2014 +0200 @@ -66,6 +66,9 @@ } UiObject* uic_current_obj(UiObject *toplevel) { + if(!toplevel) { + return NULL; + } UiObject *obj = toplevel; while(obj->next) { obj = obj->next;