summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--activitypub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 3c8204b..39fcdfe 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -341,6 +341,11 @@ void process_queue(snac *snac)
xs *q_item = dequeue(snac, fn);
char *type;
+ if (q_item == NULL) {
+ snac_log(snac, xs_fmt("process_queue q_item error"));
+ continue;
+ }
+
if ((type = xs_dict_get(q_item, "type")) == NULL)
type = "output";