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

Commit bf427a20 authored by Jun Su's avatar Jun Su
Browse files

Fix NullPointerException issue when user change

When info is null, we have risk to have access null point.

Change-Id: Ie6acee5c99d6297e31d46585435a735a38b19e82
parent 4c941850
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -841,8 +841,10 @@ public class RunningState {
                            info, context.getResources());
                }
                String name = info != null ? info.name : null;
                if (name == null) {
                if (name == null && info != null) {
                    name = Integer.toString(info.id);
                } else if (info == null) {
                    name = context.getString(R.string.unknown);
                }
                userItem.mUser.mLabel = context.getResources().getString(
                        R.string.running_process_item_user_label, name);