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

Commit 75f4458c authored by luanzhuang's avatar luanzhuang Committed by zhuang luan
Browse files

Fix NPE problem to avoid systemserver process crash.



Test: monkey test
Flag: EXEMPT bugfix
Bug: 397517013

Change-Id: I422ed54e62b12278873e38372b067d8eb42b8692
Signed-off-by: default avatarluanzhuang <luanzhuang@xiaomi.corp-partner.google.com>
parent 91edc7f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -474,7 +474,7 @@ final class ContentRecorder implements WindowContainerListener {
                    return null;
                }
                final Task taskToRecord = wc.asTask();
                if (taskToRecord == null) {
                if (taskToRecord == null || !taskToRecord.isAttached()) {
                    handleStartRecordingFailed();
                    ProtoLog.v(WM_DEBUG_CONTENT_RECORDING,
                            "Content Recording: Unable to retrieve task to start recording for "