--- 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;