Skip to content

Commit a076c94

Browse files
committed
document that in edge cases, playlist tracks may be null
1 parent ba94f35 commit a076c94

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/com/adamratzman/spotify/models

1 file changed

+1
-1
lines changed

src/main/kotlin/com/adamratzman/spotify/models/Playlist.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ data class SimplePlaylist(
6262
* @property addedAt The date and time the track was added. Note that some very old playlists may return null in this field.
6363
* @property addedBy The Spotify user who added the track. Note that some very old playlists may return null in this field.
6464
* @property isLocal Whether this track is a local file or not.
65-
* @property track Information about the track.
65+
* @property track Information about the track. In rare occasions, this field may be null if this track's API entry is broken.
6666
*/
6767
data class PlaylistTrack(
6868
@Json(name = "primary_color") val primaryColor: String? = null,

0 commit comments

Comments
 (0)