Skip to content

Commit 5432554

Browse files
author
Stefan
committed
[FIX] add NULL pointer check to xTaskIncrementTick()
1 parent 1a1ae36 commit 5432554

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4766,6 +4766,11 @@ BaseType_t xTaskIncrementTick( void )
47664766
{
47674767
for( ; ; )
47684768
{
4769+
/* if the system tick interrupt is started independent from the
4770+
* scheduler the first tick increment might occur before the
4771+
* the first task is created and therefore pxDelayedTaskList is
4772+
* still not set */
4773+
configASSERT( pxDelayedTaskList != NULL );
47694774
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
47704775
{
47714776
/* The delayed list is empty. Set xNextTaskUnblockTime

0 commit comments

Comments
 (0)