Skip to content

Comments

Fix nil pointer dereference for cron#319

Merged
mxpv merged 1 commit intomxpv:mainfrom
Contextualist:fix-cron-nil
Jun 13, 2022
Merged

Fix nil pointer dereference for cron#319
mxpv merged 1 commit intomxpv:mainfrom
Contextualist:fix-cron-nil

Conversation

@Contextualist
Copy link
Contributor

@Contextualist Contextualist commented Jun 12, 2022

This fixes #220 and fixes #242.

I did not encounter this myself, but based on the error call stack provided, the error seems to be due to a nil logger being passed to cron.SkipIfStillRunning.

If the next update occurs before the current update finishes, the nil logger is used without check and triggers the nil pointer dereference error.

@mxpv mxpv merged commit 8ee22c6 into mxpv:main Jun 13, 2022
@Contextualist Contextualist deleted the fix-cron-nil branch June 13, 2022 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic: runtime error: invalid memory address or nil pointer dereference panic: runtime error: invalid memory address or nil pointer dereference

2 participants