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

Commit b8aa5510 authored by kaiyiz's avatar kaiyiz
Browse files

Settings: Fix Settings force close many times during Monkey test

It's caused by NullPointerException.

Add the null pointer judgement to prevent NullPointerException.

Change-Id: I35043637716d2f376c9749e7ecb343ec4f6c5bef
CRs-Fixed: 791141
parent 74044ef4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1063,7 +1063,7 @@ public class InstalledAppDetails extends Fragment
                mDataSize.setText(getSizeStr(dataSize));
            }
            long cacheSize = mAppEntry.cacheSize + mAppEntry.externalCacheSize;
            if (mLastCacheSize != cacheSize) {
            if (mLastCacheSize != cacheSize && mCacheSize != null) {
                mLastCacheSize = cacheSize;
                mCacheSize.setText(getSizeStr(cacheSize));
            }