From afb6afd0ee4e886848034b22a90cd8b4600b1447 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sun, 26 Nov 2023 09:34:43 -0600 Subject: [PATCH] Fix crash bug --- src/model/status.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model/status.c b/src/model/status.c index e7f63d2..0815034 100644 --- a/src/model/status.c +++ b/src/model/status.c @@ -864,7 +864,9 @@ void status_add_to_timeline( struct status* s, int account_id ) //printf( "Adding status %d to timeline for %s (%d/%d)\n", s->id, a->account_id, account_id, a->id ); struct timeline* tl = account_get_timeline(a); - timeline_add_post( tl, s ); + if( tl ) { + timeline_add_post( tl, s ); + } timeline_free(tl); account_free(a);