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