Skip to content

Null pointer exception when calling Disconnect  #200

@MitchVonBrumen

Description

@MitchVonBrumen

Is this a how to question?
No
If Yes, please use Stack Overflow instead.

Is this a native Spotify SDK issue?
No

Have you searched for existing issues?
Yes

Are you using a Free or Premium Spotify account?
Free

Are you aware of the limitations of Free Spotify accounts?
Yes

Expected behavior
User is disconnected from Spotify when disconnect method is called.

Describe the bug
Got a java null pointer exception when calling disconnect

Steps to Reproduce

  1. Log in the user
  2. Call disconnect
  3. See error:
    Error while deleting user: PlatformException(error, null, null, java.lang.NullPointerException
    I/flutter (18388): at de.minimalme.spotify_sdk.SpotifySdkPlugin.disconnectFromSpotify(SpotifySdkPlugin.kt:349)
    I/flutter (18388): at de.minimalme.spotify_sdk.SpotifySdkPlugin.onMethodCall(SpotifySdkPlugin.kt:177)
    I/flutter (18388): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)

Spotify_sdk Flutter package version
2.3.1

Target Platform, Version & Device

  • OS & Version: Android 9
  • Device: Pixel 6

Development OS
Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions