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

Commit 0e1f4736 authored by mattsziklay's avatar mattsziklay
Browse files

Guard potential null case in FullscreenTaskListener.releaseWindowDecor

found in testing.

Bug: 244333148
Test: Test no longer fails.
Change-Id: Ie65ac68f11afc6777e2c9c18f8ad8386ae43082f
parent dcc64534
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -287,6 +287,9 @@ public class FullscreenTaskListener<T extends AutoCloseable>
    }

    private void releaseWindowDecor(T windowDecor) {
        if (windowDecor == null) {
            return;
        }
        try {
            windowDecor.close();
        } catch (Exception e) {