Skip to content

Fix nil stemsModel crash in S4MK3 DeckInfo - #16044

Merged
acolombier merged 1 commit into
mixxxdj:mainfrom
varunkumar-22:fix/stemsmodel-nil-crash-15802
Feb 25, 2026
Merged

Fix nil stemsModel crash in S4MK3 DeckInfo#16044
acolombier merged 1 commit into
mixxxdj:mainfrom
varunkumar-22:fix/stemsmodel-nil-crash-15802

Conversation

@varunkumar-22

Copy link
Copy Markdown
Contributor

When stemsModel is nil (e.g. when a non-stems track is loaded), accessing .get()on it directly causes a crash. The fix is straightforward just add the optional chaining operator ?. before .get() on the two affected lines, so the expression safely returns undefined instead of throwing.

Fixes #15802.

@acolombier acolombier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this fix in a PR!

@acolombier
acolombier merged commit aeea62a into mixxxdj:main Feb 25, 2026
15 checks passed
@varunkumar-22

Copy link
Copy Markdown
Contributor Author

Thank you! Looking forward to contribute more:)

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.

script issue for Traktor S4 MK3 building without stem support

2 participants