Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8deb288 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Fix crash when uri in SmsProviderChangedReceiver is null

parent 945f32f5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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()