summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/llcache.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/llcache.c b/content/llcache.c
index 58ac00a7c..625e810ff 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -2762,6 +2762,13 @@ static void llcache_fetch_callback(const fetch_msg *msg, void *p)
llcache_object *object = p;
llcache_event event;
+ if (llcache == NULL) {
+ NSLOG(llcache, CRITICAL, "Callback happened after llcache finalisation");
+ assert(false);
+ /* In case assertions are off, return here */
+ return;
+ }
+
NSLOG(llcache, DEBUG, "Fetch event %d for %p", msg->type, object);
switch (msg->type) {