Skip to content

Commit

Permalink
fix: prevents NPE on null key material on android
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Feb 26, 2024
1 parent 763d037 commit 388bdf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ConversationWrapper {
"peerAddress" to conversation.peerAddress,
"version" to if (conversation.version == Conversation.Version.V1) "v1" else "v2",
"conversationID" to (conversation.conversationId ?: ""),
"keyMaterial" to Base64.encodeToString(conversation.keyMaterial, Base64.NO_WRAP)
"keyMaterial" to (conversation.keyMaterial?.let { Base64.encodeToString(it, Base64.NO_WRAP) } ?: "")
)
}

Expand Down

0 comments on commit 388bdf8

Please sign in to comment.