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

Android: Attempt to read from field 'long com.spotify.protocol.types.Track.duration' on a null object reference after authorizing #191

Closed
pretorh opened this issue May 20, 2022 · 0 comments

Comments

@pretorh
Copy link
Contributor

pretorh commented May 20, 2022

Hi,

Sometimes after authorizing Spotify, there is no track playing, resulting in a null object exception (Attempt to read from field 'long com.spotify.protocol.types.Track.duration' on a null object reference) in handleOnConnect -> ... -> Convert.toMap(Track track)

Not sure when it happens: it may be a slow device or network. Easiest way to replicate it:

  • clear Spotify storage via it's settings
  • use await SpotifyAuth.authorize(...) and await SpotifyRemote.connect(...)
  • login on Spotify

null-track

@cjam cjam closed this as completed in 5a4b4ae May 23, 2022
theshadowagent pushed a commit to theshadowagent/react-native-spotify-remote that referenced this issue Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant