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

Commit 789e158c authored by Tracy Zhou's avatar Tracy Zhou Committed by Han Wang
Browse files

Fix NPE in SyncRtSurfaceTransactionApplier#scheduleApply

Fixes: 124522312
Test: Manual
Change-Id: I0eadbd8a6c3be0cbe7122ffc43fc86c18866a33f
parent f8d54bb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public class SyncRtSurfaceTransactionApplier {
     *               this method to avoid synchronization issues.
     */
    public void scheduleApply(SurfaceParams... params) {
        if (mTargetViewRootImpl == null) {
        if (mTargetViewRootImpl == null || mTargetViewRootImpl.getView() == null) {
            return;
        }
        mTargetViewRootImpl.registerRtFrameCallback(frame -> {