summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Song Chun Fan <schfan@google.com> 2025-03-17 11:09:13 -0700
committer Song Chun Fan <schfan@google.com> 2025-03-17 11:09:13 -0700
commitf7982a6666f40343e9a2b2dcbaaa23451f6d4a0f (patch)
treed258426113cdabee1a5d552db841f267a01ac717 /libs/androidfw/FileStream.cpp
parent34eaed1aa7e355c0e48acdf0b36e94cf21f9ba2a (diff)
Fix NPE caused by null replacedPkgSetting
replacedPkgSetting can be null if the existing package has been removed around the same time it was updated, because we only acquire mLock at the commit stage. Adding an NPE check to prevent crashes. BUG: 403742230 FIXES: 403742230 Test: builds Change-Id: I361836d6960fdde75357c09077ba3c382ec8a7bb
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions