[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] jjason62309:
WiFi hotspot issue

Hi I have a WiFi hotspot issue , and the log is here:

time: 1584844707867
msg: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:915)
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
at com.android.settings.wifi.tether.WifiTetherApBandPreferenceController.getConfigSummary(WifiTetherApBandPreferenceController.java:80)
at com.android.settings.wifi.tether.WifiTetherApBandPreferenceController.updateDisplay(WifiTetherApBandPreferenceController.java:72)
at com.android.settings.wifi.tether.WifiTetherBasePreferenceController.displayPreference(WifiTetherBasePreferenceController.java:61)
at com.android.settings.dashboard.DashboardFragment.lambda$displayResourceTiles$5(DashboardFragment.java:313)
at com.android.settings.dashboard.-$$Lambda$DashboardFragment$Tn5-YvXfafHUTSTeQyMxdmcExvo.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(DashboardFragment.java:312)
at com.android.settings.dashboard.DashboardFragment.refreshAllPreferences(DashboardFragment.java:360)
at com.android.settings.dashboard.DashboardFragment.onCreatePreferences(DashboardFragment.java:160)
at androidx.preference.PreferenceFragmentCompat.onCreate(PreferenceFragmentCompat.java:160)
at com.android.settingslib.core.lifecycle.ObservablePreferenceFragment.onCreate(ObservablePreferenceFragment.java:61)
at com.android.settings.SettingsPreferenceFragment.onCreate(SettingsPreferenceFragment.java:135)
at com.android.settings.dashboard.DashboardFragment.onCreate(DashboardFragment.java:137)
at com.android.settings.dashboard.RestrictedDashboardFragment.onCreate(RestrictedDashboardFragment.java:104)
at com.android.settings.wifi.tether.WifiTetherSettings.onCreate(WifiTetherSettings.java:100)
at androidx.fragment.app.Fragment.performCreate(Fragment.java:2596)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:831)
at androidx.fragment.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1197)
at androidx.fragment.app.FragmentTransition.calculateFragments(FragmentTransition.java:1080)
at androidx.fragment.app.FragmentTransition.startTransitions(FragmentTransition.java:119)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1853)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1811)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1717)
at androidx.fragment.app.FragmentManagerImpl.executePendingTransactions(FragmentManagerImpl.java:183)
at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:567)
at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.java:360)
at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:268)
at android.app.Activity.performCreate(Activity.java:7824)
at android.app.Activity.performCreate(Activity.java:7813)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
... 11 more