Error: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference #181
Open
Description
Report
- I have searched existing issues and this is not a duplicate.
Environment
- Platforms: Android
- Android version: 10
- iOS version: N/A
Issues and Steps to Reproduce
I have not tested this on iOS, but on android, whenever I tap on Register
, the following error gets logged:
Error: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
Note that I am running the code I got from https://github.com/CatalystCode/react-native-azurenotificationhub/blob/master/docs/android-installation.md#javascript-configuration and only changed the connectionString
and hubName
to their correct values. The error is vague and I'm unsure what it's referring to...
Expected Behavior
The error shouldn't be thrown.
Actual Behavior
The error is thrown.
Link to Code
N/A
Metadata
Assignees
Labels
No labels