summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Julia Tuttle <juliatuttle@google.com> 2023-11-07 23:26:52 -0500
committer Julia Tuttle <juliatuttle@google.com> 2023-11-07 23:26:55 -0500
commit2c4c4879ba89786894a53e8f554f6d8bf5876412 (patch)
tree0fc3540a56c9ff96b2cbcd06632d793122b66153 /libs/androidfw/FileStream.cpp
parent1672bdbbd33644cdf3c2553868320cc852464140 (diff)
FakeGlobalSettings: crash in getContentResolver()
FakeGlobalSettings doesn't actually contain or reference a ContentResolver, but SettingsProxy has a registerContentObserver method that callers can use if they're just getting the ContentResolver in order to register an observer. Therefore, instead of returning null and letting the caller crash, throw an exception immediately and include a helpful pointer. Bug: 261728888 Test: presubmit Flag: NA Change-Id: I913711df1c41693157da12fbd4306de1b2d2a7c8
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions