We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a747e commit 0e0362bCopy full SHA for 0e0362b
library/src/main/java/org/xmtp/android/library/Client.kt
@@ -336,14 +336,16 @@ class Client() {
336
null
337
}
338
339
- if (v3Client?.textToSign() == null) {
340
- v3Client?.registerIdentity(null)
341
- } else if (account != null) {
342
- v3Client.textToSign()?.let {
343
- v3Client.registerIdentity(account.sign(it)?.rawData)
+ if (v3Client != null) {
+ if (v3Client.textToSign() == null) {
+ v3Client.registerIdentity(null)
+ } else if (account != null) {
+ v3Client.textToSign()?.let {
344
+ v3Client.registerIdentity(account.sign(it)?.rawData)
345
+ }
346
+ } else {
347
+ throw XMTPException("No signer passed but signer was required.")
348
- } else {
- Log.i(TAG, "No signer passed but signer was required.")
349
350
351
return v3Client
0 commit comments