diff options
| author | 2024-04-22 14:49:35 +0800 | |
|---|---|---|
| committer | 2024-04-22 07:34:37 +0000 | |
| commit | 998a2bbbb59ebc86d1b5ff3d3543cec87f87961c (patch) | |
| tree | 074775e9f97376096955563bc05bc8212b951742 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | c40bde3f8e0b3fd98f3ae0579770b9947322c229 (diff) | |
Fix nullptr exception when using do-while
Using of 'instanceof' cannot determine whether 'nextParent' is non-null during the first loop in do-while, so when 'focused.getParent()' outside the loop returns null, the loop body will trigger a null pointer exception. Therefore, the conditional judgment needs to be covered in every loop.
Test:UAT
Bug: 336205346
Change-Id: I78374410d928009ea9b99630cae2fbea24ba8ab6
Signed-off-by: zhuning3 <zhuning3@xiaomi.corp-partner.google.com>
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions