[FIX] add NULL pointer check to xTaskIncrementTick()

This commit is contained in:
Stefan 2025-02-19 18:18:41 +01:00
parent 1a1ae36f9a
commit 54325540ea

View file

@ -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