diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/ConnectionInfoResponseConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/ConnectionInfoResponseConverter.kt index f6903401..0baa740c 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/ConnectionInfoResponseConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/ConnectionInfoResponseConverter.kt @@ -10,7 +10,7 @@ class ConnectionInfoResponseConverter @Inject constructor() { fun apply(response: ConnectionInfoResponse): ConnectionInfo = ConnectionInfo( username = response.user.username, - serverVersion = response.serverSettings.version, - buildNumber = response.serverSettings.buildNumber, + serverVersion = response.serverSettings?.version, + buildNumber = response.serverSettings?.buildNumber, ) } diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/model/connection/ConnectionInfoResponse.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/model/connection/ConnectionInfoResponse.kt index 2b14373c..228c54a9 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/model/connection/ConnectionInfoResponse.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/model/connection/ConnectionInfoResponse.kt @@ -2,7 +2,7 @@ package org.grakovne.lissen.channel.audiobookshelf.common.model.connection data class ConnectionInfoResponse( val user: ConnectionInfoUserResponse, - val serverSettings: ConnectionInfoServerResponse, + val serverSettings: ConnectionInfoServerResponse?, ) data class ConnectionInfoUserResponse(