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

Commit 14906bcc authored by Jian Zhou's avatar Jian Zhou Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Fix settings force close in monkey test.

UnrestrictedDataAccess null pointer causes settings force close in monkey
test.

Add null pointer protect.

CRs-Fixed: 1057528

Change-Id: I6a98c92e3f28639db7985d7c7331be0465c81f76
parent 2802ec26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -250,7 +250,7 @@ public class UnrestrictedDataAccess extends SettingsPreferenceFragment

        @Override
        protected void onClick() {
            if (mState.isDataSaverBlacklisted) {
            if (mState != null && mState.isDataSaverBlacklisted) {
                // app is blacklisted, launch App Data Usage screen
                InstalledAppDetails.startAppInfoFragment(AppDataUsage.class,
                        getContext().getString(R.string.app_data_usage),