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

Android crash #49

Open
aliceathens opened this issue Jan 8, 2018 · 4 comments
Open

Android crash #49

aliceathens opened this issue Jan 8, 2018 · 4 comments

Comments

@aliceathens
Copy link

aliceathens commented Jan 8, 2018

OS: 8.0
Device: OnePlus3

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference at com.reactnativecomponent.splashscreen.RCTSplashScreen.getActivity(RCTSplashScreen.java:31) at com.reactnativecomponent.splashscreen.RCTSplashScreen.removeSplashScreen(RCTSplashScreen.java:82) at com.reactnativecomponent.splashscreen.RCTSplashScreenModule$1.run(RCTSplashScreenModule.java:56) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194) at java.lang.Thread.run(Thread.java:764)

@webraptor
Copy link

We're also experiencing this issue on about 10% of android devices

@aliceathens
Copy link
Author

Yes still an issue with about the same amount of users

@webraptor
Copy link

webraptor commented Apr 10, 2018

We've managed to narrow this down to a particular use case, when the app is started for a received push notification (when the splashscreen's not shown but we try to close it, resulting in the null pointer exception)

Created a PR with the fix: #56

webraptor added a commit to luminos-software/react-native-smart-splash-screen that referenced this issue Apr 10, 2018
@aliceathens
Copy link
Author

aliceathens commented Aug 13, 2018

Great! Would be good to get this pull request merged this issue is the only one causing our app to crash on Android.

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

No branches or pull requests

2 participants