diff options
| author | 2023-12-05 14:09:28 +0100 | |
|---|---|---|
| committer | 2023-12-05 14:09:28 +0100 | |
| commit | e1c3f645c03ae7c992e05a8e0800d1f0e4dfea65 (patch) | |
| tree | f58dc44a815b0df76173d23b6b30e2f6f30611c7 /libs/input/SpriteController.cpp | |
| 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
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions