Skip to content

Conversation

klutvott123
Copy link
Member

If there are no pages and the message No Pages! API: is shown, the script will crash when pressing enter. It tries to access Page which is nil.

After #278 we are now unloading Page when selecting a page from the main menu to avoid the situation where there's two pages in memory. Then there's a small chance that Page == nil when processMspReply() tries to access it. I haven't been able to make it happen yet, but it's possible.

These are the only two cases I can find where this can happen.

@mikeller mikeller added this to the 1.5 milestone Nov 1, 2019
@mikeller mikeller merged commit be4fc28 into betaflight:master Nov 2, 2019
@klutvott123 klutvott123 deleted the prevent-page-access-if-nil branch November 15, 2019 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants