Skip to content

Commit d309877

Browse files
nicholas-signalcody-signal
authored andcommitted
Fix ISE in registration.
1 parent f247fd7 commit d309877

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/org/thoughtcrime/securesms/registration/ui/RegistrationExtensions.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ fun PhoneNumber.toE164(): String {
1515
}
1616

1717
fun Fragment.isBindingInvalid(): Boolean {
18+
if (view == null) {
19+
return false
20+
}
21+
1822
return viewLifecycleOwner.lifecycle.currentState.isAtLeast(Lifecycle.State.INITIALIZED)
1923
}

0 commit comments

Comments
 (0)