Merge "Guard potential null case in FullscreenTaskListener.releaseWindowDecor found in testing." into tm-qpr-dev

This commit is contained in:
Matt Sziklay
2022-09-01 02:07:09 +00:00
committed by Android (Google) Code Review

View File

@@ -287,6 +287,9 @@ public class FullscreenTaskListener<T extends AutoCloseable>
} }
private void releaseWindowDecor(T windowDecor) { private void releaseWindowDecor(T windowDecor) {
if (windowDecor == null) {
return;
}
try { try {
windowDecor.close(); windowDecor.close();
} catch (Exception e) { } catch (Exception e) {