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

Commit 3c2c6587 authored by Quang Luong's avatar Quang Luong
Browse files

Added null pointer check for mWifiConfig.macRandomizationSetting

Without the null pointer check, a passpoint network in the saved
networks page will throw a NullPointerException since there is no
config associated with it.

Bug: 129422562
Test: manual
Change-Id: I4a085a16c4181b7bdfe46c279e579d34ba314d81
parent 533d8b6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -663,7 +663,8 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
        }

        // return randomized MAC address
        if (mWifiConfig.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_PERSISTENT) {
        if (mWifiConfig != null &&
                mWifiConfig.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_PERSISTENT) {
            return mWifiConfig.getRandomizedMacAddress().toString();
        }