Android crashes NullPointerException

Hi all!

I made an app which is on the App Store and Google Play and I’m getting crashes on Android from Expo.

// package.json
    "expo": "^20.0.0",
    "react": "16.0.0-alpha.12",
    "react-native": "https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz",
    "exp": "44.0.0"

// app.json
    "sdkVersion": "20.0.0",

I’ll make 2 kinds of Topic for the 2 kinds of Java exception I’m getting, but here’s the first one: NullPointerException


java.lang.NullPointerException: 
  at host.exp.exponent.experience.h.run (ExperienceActivity.java:347)
  at android.app.Activity.runOnUiThread (Activity.java:5575)
  at host.exp.exponent.experience.ExperienceActivity.a (ExperienceActivity.java:340)
  at host.exp.exponent.experience.v.run (ShellAppActivity.java:33)
  at android.os.Handler.handleCallback (Handler.java:739)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:145)
  at android.app.ActivityThread.main (ActivityThread.java:5942)
  at java.lang.reflect.Method.invoke (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1399)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1194)

and

java.lang.NullPointerException: 
  at abi20_0_0.host.exp.exponent.modules.api.SpeechModule$1.onInit (SpeechModule.java:35)
  at android.speech.tts.TextToSpeech.dispatchOnInit (TextToSpeech.java:820)
  at android.speech.tts.TextToSpeech.access$1900 (TextToSpeech.java:59)
  at android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute (TextToSpeech.java:2255)
  at android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask.onPostExecute (TextToSpeech.java:2210)
  at android.os.AsyncTask.finish (AsyncTask.java:651)
  at android.os.AsyncTask.access$500 (AsyncTask.java:180)
  at android.os.AsyncTask$InternalHandler.handleMessage (AsyncTask.java:668)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:148)
  at android.app.ActivityThread.main (ActivityThread.java:7331)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)

Those are the 2 kinds of NullPointerException I’m getting from my app. The second one seems weird, because my app doesn’t use any Speech feature…

Any idea of the cause and/or potential fix?

Thanks :blush:

@jesse do these look familiar to you?