Skip to content

Fix null currentBeat crash in AlphaTabApiBase internalCursorUpdateBeat#2631

Open
AndreiGorelov wants to merge 2 commits intoCoderLine:developfrom
AndreiGorelov:feature/issue-2615
Open

Fix null currentBeat crash in AlphaTabApiBase internalCursorUpdateBeat#2631
AndreiGorelov wants to merge 2 commits intoCoderLine:developfrom
AndreiGorelov:feature/issue-2615

Conversation

@AndreiGorelov
Copy link
Copy Markdown

@AndreiGorelov AndreiGorelov commented Apr 2, 2026

Issues

Fixes #2615

Proposed changes

Guard _internalCursorUpdateBeat when _currentBeat is null after the deferred beginInvoke callback runs (e.g. Android Handler.post), so tapping the score during playback no longer crashes with a null on currentBeat.start.

Checklist

  • I consent that this change becomes part of alphaTab under it's current or any future open source license
  • Changes are implemented
  • New tests were added

No new automated tests: reproducing the race requires Android UI/async scheduling. Verified manually with real devices.

Further details

  • This is a breaking change
  • This change will require update of the documentation/website

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.

Android NullPointerException in AlphaTabApiBase._internalCursorUpdateBeat

1 participant