summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Cosmin Băieș <cosminbaies@google.com> 2023-12-05 14:09:28 +0100
committer Cosmin Băieș <cosminbaies@google.com> 2023-12-05 14:09:28 +0100
commite1c3f645c03ae7c992e05a8e0800d1f0e4dfea65 (patch)
treef58dc44a815b0df76173d23b6b30e2f6f30611c7 /libs/input/SpriteController.cpp
parentb0257997cd56c245454e1c3586a21033231cb194 (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