New Settings FC when enabling "Download MMS with mobile data off"


Nexus8

Members
Aug 15, 2019
14
15
Hey everyone!

I just found a bug on the 9.8.15 build (running on a Mi9), when I try to download a MMS without mobile data enabled, I receive a notification telling me to enable the "Download MMS with mobile data off" option in the settings, but when I press the notification, the Settings app force close.
The option is actually enabled in my settings but it doesn't work.
 
Here you go, sorry for the wait time
Code:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.network.telephony.MobileNetworkActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.preference.Preference.getIntent()' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(Unknown Source:621)
    at android.app.ActivityThread.handleLaunchActivity(Unknown Source:47)
    at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:63)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
    at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:73)
    at android.app.ActivityThread$H.handleMessage(Unknown Source:43)
    at android.os.Handler.dispatchMessage(Unknown Source:19)
    at android.os.Looper.loop(Unknown Source:233)
    at android.app.ActivityThread.main(Unknown Source:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
    at com.android.internal.os.ZygoteInit.main(Unknown Source:275)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.preference.Preference.getIntent()' on a null object reference
    at com.android.settings.network.telephony.WifiCallingPreferenceController.displayPreference(Unknown Source:15)
    at com.android.settings.dashboard.DashboardFragment.lambda$displayResourceTiles$5(Unknown Source:0)
    at com.android.settings.dashboard.-$$Lambda$DashboardFragment$XPveJln5UUY5yQAv3aADlbvEe6o.accept(Unknown Source:4)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1390)
    at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:604)
    at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:283)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:475)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:133)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:236)
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:435)
    at com.android.settings.dashboard.DashboardFragment.displayResourceTiles(Unknown Source:32)
    at com.android.settings.dashboard.DashboardFragment.refreshAllPreferences(Unknown Source:0)
    at com.android.settings.dashboard.DashboardFragment.onBindPreferences(Unknown Source:7)
    at android.preference.PreferenceFragment.bindPreferences(Unknown Source:56)
    at android.preference.PreferenceFragment.onActivityCreated(Unknown Source:7)
    at com.android.settings.SettingsPreferenceFragment.onActivityCreated(Unknown Source:0)
    at com.android.settings.dashboard.RestrictedDashboardFragment.onActivityCreated(Unknown Source:0)
    at android.app.Fragment.performActivityCreated(Unknown Source:13)
    at android.app.FragmentManagerImpl.moveToState(Unknown Source:631)
    at android.app.FragmentManagerImpl.addAddedFragments(Unknown Source:46)
    at android.app.FragmentManagerImpl.executeOpsTogether(Unknown Source:129)
    at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(Unknown Source:99)
    at android.app.FragmentManagerImpl.execPendingActions(Unknown Source:21)
    at android.app.FragmentManagerImpl.dispatchMoveToState(Unknown Source:18)
    at android.app.FragmentManagerImpl.dispatchActivityCreated(Unknown Source:4)
    at android.app.FragmentController.dispatchActivityCreated(Unknown Source:4)
    at android.app.Activity.performCreate(Unknown Source:49)
    at android.app.Activity.performCreate(Unknown Source:1)
    at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
    at android.app.ActivityThread.performLaunchActivity(Unknown Source:376)
    ... 11 more[/code/]
 
Last edited by a moderator:
I'm having the same exact problem on MIUI 9.10.17 on my Mi 8. I didnt have this problem until this week when I updated to MIUI 11 and Android 10.

UDDATE: I just updated to MIUI 9.10.24 but I still can't download MMS messages when my mobile data is off. Before MIUI knew how to temporarily turn on mobile data to download or send an MMS messasge and then after it was done it would turn it back off.
 
Last edited: