commit | e1c3f645c03ae7c992e05a8e0800d1f0e4dfea65 | [log] [tgz] |
---|---|---|
author | Cosmin Băieș <cosminbaies@google.com> | Tue Dec 05 14:09:28 2023 +0100 |
committer | Cosmin Băieș <cosminbaies@google.com> | Tue Dec 05 14:09:28 2023 +0100 |
tree | f58dc44a815b0df76173d23b6b30e2f6f30611c7 | |
parent | b0257997cd56c245454e1c3586a21033231cb194 [diff] |
Fix NPE on rootViewImpl.getView We have two instances which can (very rarely) trigger an NPE, when we check if we have a non-null rootViewImpl with a non-null view, and use that view later. This code is in a synchronized block, but that lock does not protect the viewRootImpl's getView call, instead we should just save a final reference to it. Bug: 313399081 Test: n/a Change-Id: I047b50d26972e6407b04d7cc09ef9110c5fd4b41