Skip to content

Commit 1f8e183

Browse files
committed
weird nullable compilation error only on CI
1 parent 828f938 commit 1f8e183

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/client/ClientPlayerApi.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ public class ClientPlayerApi(api: GenericSpotifyApi) : SpotifyEndpoint(api) {
165165
.with("market", market?.name)
166166
.toString()
167167
)
168-
.toObject(CurrentlyPlayingObject.serializer(), api, json)
169-
}
168+
}?.toObject(CurrentlyPlayingObject.serializer(), api, json)
170169
if (obj?.timestamp == null) null else obj
171170
} catch (pe: SpotifyException.ParseException) {
172171
pe.printStackTrace()

0 commit comments

Comments
 (0)