diff options
author | Hongwei Wang <hwwang@google.com> | 2020-09-24 15:30:37 -0700 |
---|---|---|
committer | Hongwei Wang <hwwang@google.com> | 2020-09-24 15:30:37 -0700 |
commit | e4489b4c296df842eac4b9a8d54a3d4dc53f9033 (patch) | |
tree | 981a3909e783dd5bf4a08b8d55b2412dcecb576f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 0e2927e75b401dd09ec9ac17c798f34ea2db4379 (diff) |
Bail early if mToken.asBinder() not found
Not able to reproduce what's in the original bug report, this null check
is added as a safe guard. A possible scenario is
PipTaskOrganizer#exitPip is called twice and there is a race condition
that the first applySyncTransaction is not ready yet and leave the
internal state as it was, the second call tries to get configuration and
it is null, which leads to a NPE.
This is a counterpart of ag/12674237
Bug: 169360509
Test: N/A
Change-Id: Ife3281178f341a4118820b6e511afdab56f9ff11
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions