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

Commit 1288c5a2 authored by Rachel Lee's avatar Rachel Lee Committed by Automerger Merge Worker
Browse files

Throw exception when VsyncEventData null. am: e712c2a8

parents 463c4b4b e712c2a8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1206,6 +1206,10 @@ public final class Choreographer {
            if (newPreferredDeadline < minimumDeadline) {
                DisplayEventReceiver.VsyncEventData latestVsyncEventData =
                        displayEventReceiver.getLatestVsyncEventData();
                if (latestVsyncEventData == null) {
                    throw new IllegalArgumentException(
                            "Could not get VsyncEventData. Did SurfaceFlinger crash?");
                }
                update(frameTimeNanos, latestVsyncEventData);
            } else {
                update(frameTimeNanos, newPreferredIndex);