BareBones Expo project crashes on UleFone

Our company recently purchased several UleFone Armor X5 Android devices to deploy our app to, however I have not been able to stop our app from crashing on start-up with these devices. I have ran the app on at least 6 other phone models with no problem at all. I decided to build a new bare bones project and deploy that to see if there was a library or any code that this phone just didn’t like for some reason. However, even with the bare bones project the app still crashes on start up and throws no errors. At this point it appears to be an Expo compatibility with this phone, but even still it doesn’t make a lot of sense as the phone is running Android v10 and I have ran this app on other phone I have with the same Android version and it runs with no problem at all. I was able to gather some logs about the crash using adb logcat, and the stack trace looks identical for both the bare bones app and my app on crash.

0-02 09:08:17.231 7366 7366 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jeffh79.testapp/host.exp.exponent.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.ComponentName android.content.Intent.getComponent()’ on a null object reference
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3326)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3465)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2069)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7417)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
10-02 09:08:17.231 7366 7366 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.content.ComponentName android.content.Intent.getComponent()’ on a null object reference

Any help would be greatly appreciated as I would prefer to use the devices I have if at all possible.

Hey @jeffh79,

Would you be able to create a Github Issue for this (as it sounds like you’ve been able to consistently reproduce the issue with a new project as well)?

Cheers,
Adam