vhaudiquet / blade-player

Android music player that plays from local library, Spotify or Deezer
GNU General Public License v3.0
67 stars 12 forks source link

The app crashes during the playlist creation process using Spotify #33

Closed sagorahmed closed 4 years ago

sagorahmed commented 5 years ago

Actual behavior

The app crashes when I use Spotify to create a new playlist.

Expected behavior

The users should be able to create a new playlist by selecting Spotify without the app crashing.

How to reproduce

  1. Open the app and choose a song.
  2. Click on ⋮ (Three dots/ Vertical ellipsis) at the right side of the song.
  3. Then click "Add to playlist".
  4. After that click on "New Playlist"
  5. Then tap on the "Local" to locate your playlist's path and select Spotify.
  6. Give a name and click ok.
  7. See error.

Recording Of The Bug

spotify

Logcat

04-04 23:03:51.211 20197 20263 E AndroidRuntime: FATAL EXCEPTION: Thread-3387

04-04 23:03:51.211 20197 20263 E AndroidRuntime: Process: v.blade, PID: 20197

04-04 23:03:51.211 20197 20263 E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'java.lang.String kaaes.spotify.webapi.android.models.UserPublic.id' on a null object reference

04-04 23:03:51.211 20197 20263 E AndroidRuntime:    at v.blade.library.sources.Spotify$6.run(Spotify.java:874)