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

Add a null check for mCellularGeneration to avoid a potential crash #143

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

matt-oakes
Copy link
Collaborator

Overview

Fixes a crash when trying to access a null cellular generation value:

Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.reactnativecommunity.netinfo.types.CellularGeneration.label' on a null object reference

@matt-oakes matt-oakes requested a review from Salakar as a code owner July 15, 2019 18:45
@matt-oakes matt-oakes merged commit 097244e into master Jul 15, 2019
@matt-oakes matt-oakes deleted the matt-oakes/null-cellular-generation branch July 15, 2019 18:47
react-native-community-bot pushed a commit that referenced this pull request Jul 15, 2019
## [4.1.1](v4.1.0...v4.1.1) (2019-07-15)

### Bug Fixes

* **Android:** Add a null check for mCellularGeneration to avoid a crash ([#143](#143) by [@matt-oakes](https://github.com/matt-oakes)) ([097244e](097244e))
@react-native-community-bot
Copy link
Collaborator

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants