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

Commit d4a69704 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Fix NPE in TaskRecord.

setIntent() calls toString() when in verbose
mode, which NPEs on an uninitialized mActivities.

Change-Id: Idccfe857bedc6cac18c590b0f2858166c0a665df
parent cc32bd83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,8 +131,8 @@ final class TaskRecord extends ThumbnailHolder {
        taskId = _taskId;
        voiceSession = _voiceSession;
        voiceInteractor = _voiceInteractor;
        setIntent(_intent, info);
        mActivities = new ArrayList<ActivityRecord>();
        setIntent(_intent, info);
    }

    TaskRecord(ActivityManagerService service, int _taskId, Intent _intent, Intent _affinityIntent,