ui/common/object.c

changeset 52
25e5390cce41
parent 33
458831c574f4
child 140
c03c338a7dcf
--- 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;

mercurial