We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828f938 commit 1f8e183Copy full SHA for 1f8e183
src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientPlayerApi.kt
@@ -165,8 +165,7 @@ public class ClientPlayerApi(api: GenericSpotifyApi) : SpotifyEndpoint(api) {
165
.with("market", market?.name)
166
.toString()
167
)
168
- .toObject(CurrentlyPlayingObject.serializer(), api, json)
169
- }
+ }?.toObject(CurrentlyPlayingObject.serializer(), api, json)
170
if (obj?.timestamp == null) null else obj
171
} catch (pe: SpotifyException.ParseException) {
172
pe.printStackTrace()
0 commit comments