[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] faeArai:
Crash when trying to access the APN settings for my provider:

FATAL EXCEPTION: main

Process: com.android.settings, PID: 25036

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.Settings$ApnEditorActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Integer com.android.settings.network.ApnEditor$ApnData.getInteger(int, java.lang.Integer)' on a null object reference

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2952)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3087)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1817)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:193)

at android.app.ActivityThread.main(ActivityThread.java:6746)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Integer com.android.settings.network.ApnEditor$ApnData.getInteger(int, java.lang.Integer)' on a null object reference

at com.android.settings.network.ApnEditor.onCreate(ApnEditor.java:322)

at android.app.Fragment.performCreate(Fragment.java:2503)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1256)

at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2426)

at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2205)

at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2161)

at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2062)

at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:818)

at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:640)

at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.java:396)

at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:299)

at android.app.Activity.performCreate(Activity.java:7144)

at android.app.Activity.performCreate(Activity.java:7135)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2932)

... 11 more

got exception when querying: android.database.sqlite.SQLiteException: no such column: persistent (code 1 SQLITE_ERROR): , while compiling: SELECT _id, name, apn, proxy, port, user, server, password, mmsc, mcc, mnc, numeric, mmsproxy, mmsport, authtype, type, protocol, carrier_enabled, bearer, bearer_bitmask, roaming_protocol, mvno_type, mvno_match_data, edited, user_editable, persistent, read_only FROM carriers WHERE (_id = 3476 AND owned_by!=0) AND (edited!=2 and edited!=3 and edited!=5 and edited!=6)

Edit: btw I did a "reset APN settings to default" beforehand, too. Still same bug.