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

Commit 7a19965c authored by Jason Monk's avatar Jason Monk
Browse files

Protect against crash in memory details

Change-Id: Ie80efa04d0c6bc9c117802e5a7018d448f4dc7b8
Fixes: 29308942
parent 333ba2df
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -115,6 +115,10 @@ public class ProcessStatsDetail extends SettingsPreferenceFragment {
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        if (mApp.mUiTargetApp == null) {
            finish();
            return;
        }
        AppHeader.createAppHeader(this,
                mApp.mUiTargetApp != null ? mApp.mUiTargetApp.loadIcon(mPm) : new ColorDrawable(0),
                mApp.mUiLabel, mApp.mPackage, mApp.mUiTargetApp.uid);