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

Commit cab2f10d authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Fix Settings force close many times during Monkey test

Caused by throw NullPointerException.

Add the null pointer judgement to prevent NullPointerException.

CRs-Fixed: 775531

Change-Id: I527bddbbd1380390b223d94ab8645c67a68121fe
parent 45d57157
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1058,7 +1058,7 @@ public class InstalledAppDetails extends Fragment
                mLastCodeSize = codeSize;
                mAppSize.setText(getSizeStr(codeSize));
            }
            if (mLastDataSize != dataSize) {
            if (mLastDataSize != dataSize && mDataSize != null) {
                mLastDataSize = dataSize;
                mDataSize.setText(getSizeStr(dataSize));
            }
+1 −1
Original line number Diff line number Diff line
@@ -409,7 +409,7 @@ public class RunningProcessesView extends FrameLayout
        if (mOwner != null) {
            // start new fragment to display extended information
            Bundle args = new Bundle();
            if (mi.mProcess != null) {
            if (mi != null && mi.mProcess != null) {
                args.putInt(RunningServiceDetails.KEY_UID, mi.mProcess.mUid);
                args.putString(RunningServiceDetails.KEY_PROCESS, mi.mProcess.mProcessName);
            }