Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android/engine): Increase robustness when checking package kmp.json languages #12567

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

darcywong00
Copy link
Contributor

Fixes #11812

This adds more error handling to JSONUtils.getLanguages() where the reported issue had crashed from

Exception java.lang.NullPointerException: Attempt to get length of null array

Also added a unit test.

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 22, 2024

@darcywong00 darcywong00 merged commit 1f47374 into master Oct 24, 2024
6 checks passed
@darcywong00 darcywong00 deleted the fix/android/json-utils-listfiles branch October 24, 2024 08:38
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.130-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

bug(android): java.lang.NullPointerException: Attempt to get length of null array in prelaunch check
3 participants