mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 05:55:39 +03:00
safeguard mapper for null values on fields that need to be json-parsed
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
886a3d0df2
commit
c151da3080
1 changed files with 3 additions and 3 deletions
|
@ -44,10 +44,10 @@ object LegacyUserEntityMapper {
|
|||
entity.baseUrl,
|
||||
entity.token,
|
||||
entity.displayName,
|
||||
LoganSquare.parse(entity.pushConfigurationState, PushConfigurationState::class.java),
|
||||
LoganSquare.parse(entity.capabilities, Capabilities::class.java),
|
||||
entity.pushConfigurationState?.let { LoganSquare.parse(it, PushConfigurationState::class.java) },
|
||||
entity.capabilities?.let { LoganSquare.parse(it, Capabilities::class.java) },
|
||||
entity.clientCertificate,
|
||||
LoganSquare.parse(entity.externalSignalingServer, ExternalSignalingServer::class.java),
|
||||
entity.externalSignalingServer?.let { LoganSquare.parse(it, ExternalSignalingServer::class.java) },
|
||||
entity.current,
|
||||
entity.scheduledForDeletion
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue