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

Commit c75ac159 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Fix NPE in SyncRtSurfaceTransactionApplierCompat#scheduleApply

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