Skip to content

Fatal Exception: java.lang.NullPointerException #220

@rick89

Description

@rick89

Firebase Crashlytics reporting the below error, I am unable to produce the bug in an emulator and do not have a physical Android device:

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void android.app.Activity.startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)' on a null object reference

com.github.reactnativecommunity.location.RNPlayServicesLocationProvider$2.onFailure (RNPlayServicesLocationProvider.java:175)

Screenshot 2024-06-25 at 12 13 58

Version
2.5.0

Platform
Android 9

npx react-native info

info Fetching system and libraries information...
System:
OS: macOS 14.5
CPU: (11) arm64 Apple M3 Pro
Memory: 78.94 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 19.9.0 - ~/.nvm/versions/node/v19.9.0/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.8.1 - ~/Apps/Frontend.eMsp.Home/node_modules/.bin/npm
Watchman: 2024.06.10.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
Android SDK:
API Levels: 33, 34
Build Tools: 30.0.3, 33.0.0, 34.0.0, 35.0.0, 35.0.0
System Images: android-28 | Google APIs ARM 64 v8a, android-28 | Google ARM64-V8a Play ARM 64 v8a, android-34 | Google APIs ARM 64 v8a, android-VanillaIceCream | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2023.3 AI-233.14808.21.2331.11926650
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
Languages:
Java: 17.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.3 => 0.71.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions