react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

Fix NullPointerException in NavigationModule

Open Wiingaard opened this issue 1 year ago • 1 comments

We're seeing a crash that affects ~1% of our user base per month, that's caused by:

NullPointerException
Attempt to invoke virtual method 'boolean android.app.Activity.isFinishing()' on a null object reference

After looking into the code, we realised that that the null check and .isFinishing() are not referencing the same activity.

Here's a screenshot with stack trace from Sentry: Screenshot 2023-11-20 at 14 38 24

Wiingaard avatar Nov 20 '23 13:11 Wiingaard

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 17 '24 08:03 stale[bot]