So, I ran into a nasty bug that took me several hours to fix until I finally realized that the track field of playlist tracks can be null when the track cannot be played. Is there any plans for clearer documentation on this?
I know it is said in the description of the Get a List of a User's Playlists endpoint but I think it would be a great addition to add it to the description of the Playlist Track object as well. I initially looked at the Playlist Track Object description and it said nothing about the track field potentially being null and so I assumed the error accessing the uri of null was a mistake of mine.
Also, I was wondering why it returns null in the first place? All of the information still exists within the actual Spotify app about the deleted song, you are just unable to play it. Even the uri of the track still exists. If the Spotify application itself is able to display the correct information of a deleted track, it would make sense that the API should be able to as well.