mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed crash seen on Crashlytics due to clipboard data text being null
This commit is contained in:
parent
3a69cb4cae
commit
e8b9fd7a22
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class RegisterCodeConfirmationFragment : GenericFragment() {
|
|||
clipboard.addPrimaryClipChangedListener {
|
||||
val data = clipboard.primaryClip
|
||||
if (data != null && data.itemCount > 0) {
|
||||
val clip = data.getItemAt(0).text.toString()
|
||||
val clip = data.getItemAt(0).text?.toString() ?: ""
|
||||
if (clip.length == 4) {
|
||||
Log.i(
|
||||
"$TAG Found 4 digits [$clip] as primary clip in clipboard, using it and clear it"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue