Skip to content

Error: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference #181

Open
@aprilmintacpineda

Description

Report

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...

image

Expected Behavior

The error shouldn't be thrown.

Actual Behavior

The error is thrown.

Link to Code

N/A

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions