From 54325540ea3289fa8aaa017a79c5596a2ee45bad Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 19 Feb 2025 18:18:41 +0100 Subject: [PATCH] [FIX] add NULL pointer check to xTaskIncrementTick() --- tasks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks.c b/tasks.c index def843fe6..1c53dba79 100644 --- a/tasks.c +++ b/tasks.c @@ -4766,6 +4766,11 @@ BaseType_t xTaskIncrementTick( void ) { for( ; ; ) { + /* if the system tick interrupt is started independent from the + * scheduler the first tick increment might occur before the + * the first task is created and therefore pxDelayedTaskList is + * still not set */ + configASSERT( pxDelayedTaskList != NULL ); if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) { /* The delayed list is empty. Set xNextTaskUnblockTime