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

Commit 77324b04 authored by AI test gen's avatar AI test gen Committed by Kevin Liu
Browse files

Add test for onMaximizeButtonHoverExit with null view holder

Adds a unit test to verify that calling `onMaximizeButtonHoverExit()` after the window decoration has been closed does not result in a NullPointerException.

This test simulates an edge case where a hover exit event might be received after the decoration's view holder has been destroyed and nulled out, ensuring the added null check correctly prevents a crash.


Please help fill out the survey for feedback: https://docs.google.com/forms/d/e/1FAIpQLSeKFKpHImCAqZIa_OR801cw72HQUreM2oGM25C3mKKT2tBFnw/viewform?usp=pp_url&entry.1586624956=ag/35402090

Original Change: ag/35041164
Test: ATP tests passed http://go/forrest-run/L96900030017382731
Bug: 431235865
Flag: TEST_ONLY

Change-Id: Ia416fff098b8bf18aaf0f6d306f4b16acd9f5e4d
parent bdd2d660
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment