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

Handle failing TTS initialization #102

Open
Tracked by #163
jo-elimu opened this issue Nov 28, 2023 · 0 comments
Open
Tracked by #163

Handle failing TTS initialization #102

jo-elimu opened this issue Nov 28, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jo-elimu
Copy link
Member

jo-elimu commented Nov 28, 2023

The app crashes on Android API 33 running English as the system version:

Process: ai.elimu.vitabu.debug, PID: 30048
java.lang.RuntimeException: Unable to create application ai.elimu.vitabu.BaseApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.speech.tts.TextToSpeech.isLanguageAvailable(java.util.Locale)' on a null object reference
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7264)

Implement a solution the prevents the app from crashing when there is a problem with loading the TTS engine.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant