Fix potential crash in username share sheet.
This commit is contained in:
parent
075df8a26d
commit
8db113a19b
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ class UsernameShareBottomSheet : DSLSettingsBottomSheetFragment() {
|
|||
ShareButton.register(adapter)
|
||||
|
||||
lifecycleDisposable += Recipient.observable(Recipient.self().id).subscribe {
|
||||
if (context == null) {
|
||||
return@subscribe
|
||||
}
|
||||
|
||||
adapter.submitList(getConfiguration(it).toMappingModelList())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue