forked from upstream-mirrors/quik
Fix crash when uri in SmsProviderChangedReceiver is null
This commit is contained in:
@@ -44,7 +44,8 @@ class SmsProviderChangedReceiver : BroadcastReceiver() {
|
|||||||
appComponent.inject(this)
|
appComponent.inject(this)
|
||||||
|
|
||||||
// Obtain the uri for the changed data
|
// Obtain the uri for the changed data
|
||||||
val uri = intent.data
|
// If the value is null, don't continue
|
||||||
|
val uri = intent.data ?: return
|
||||||
|
|
||||||
// Sync the message to our realm
|
// Sync the message to our realm
|
||||||
val pendingResult = goAsync()
|
val pendingResult = goAsync()
|
||||||
|
|||||||
Reference in New Issue
Block a user