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

Commit 1416a9c4 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Add null check in InputManagerService#verifyInputEvent

Using a null event can cause the system to crash.

Bug: 197961435
Fixes: 201720518
Test: Presubmit
Change-Id: Ibf4b44dbedc3b041f6e38362b862f1ab0f665726
(cherry picked from commit 38e3e2b6)
parent 2160b3d7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -900,6 +900,7 @@ public class InputManagerService extends IInputManager.Stub

    @Override // Binder call
    public VerifiedInputEvent verifyInputEvent(InputEvent event) {
        Objects.requireNonNull(event, "event must not be null");
        return nativeVerifyInputEvent(mPtr, event);
    }