Fix crash when uri in SmsProviderChangedReceiver is null

This commit is contained in:
Moez Bhatti
2018-04-05 04:44:18 -04:00
parent 945f32f5c4
commit b8deb28813
@@ -44,7 +44,8 @@ class SmsProviderChangedReceiver : BroadcastReceiver() {
appComponent.inject(this)
// 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
val pendingResult = goAsync()