summaryrefslogtreecommitdiff
path: root/src/glibext/delayed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/delayed.c')
-rw-r--r--src/glibext/delayed.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glibext/delayed.c b/src/glibext/delayed.c
index 455cc03..32a3d16 100644
--- a/src/glibext/delayed.c
+++ b/src/glibext/delayed.c
@@ -561,7 +561,10 @@ bool init_work_queue(GObject *ref)
queue = g_object_new(G_TYPE_WORK_QUEUE, NULL);
- queue->statusbar = g_object_get_data(ref, "statusbar");
+ if (ref != NULL)
+ queue->statusbar = g_object_get_data(ref, "statusbar");
+ else
+ queue->statusbar = NULL;
if (queue != NULL)
_get_work_queue(queue);