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

Error in Sentry: Attempt to invoke virtual method 'android.view.Window android.app.Activity.getWindow()' on a null object reference #57

Closed
nmalzieu opened this issue Dec 1, 2023 · 1 comment

Comments

@nmalzieu
Copy link

nmalzieu commented Dec 1, 2023

Description

In com.reactnativesystemnavigationbar.SystemNavigationBarModule in setModeStyle at line 472
I think it's because you are rejecting the promise but still moving on with the code here:
https://github.com/kadiraydinli/react-native-system-navigation-bar/blob/master/android/src/main/java/com/reactnativesystemnavigationbar/SystemNavigationBarModule.java#L519

You need to return after rejecting the promise like you do in many other places.
Actually there are 3 or 4 places in the code where the return is missing after the reject I think.

Thanks a lot!

react-native-system-navigation-bar version

2.6.3

React Native version

0.72.5

Snack, code example, screenshot, or link to a repository

No response

@kadiraydinli
Copy link
Owner

A PR has been opened for this issue. For this reason, I published it with a new version. I am closing this issue. If the problem persists, feel free to reopen it.

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