summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Daniel Perez <perezibanez@google.com> 2025-02-11 08:42:04 -0800
committer Daniel Perez <perezibanez@google.com> 2025-02-11 09:33:45 -0800
commit40b199020fdfa1111a73134babd52eac1f5c50ed (patch)
tree88c2c61fb186c4fc6b563a960224d99646c40e4b /libs/androidfw/FileStream.cpp
parent9b30a9bc7145f5f0490e2ac700e847f24135bdcb (diff)
Fix NullPointerException in SettingsHelperRestoreTest.
Some cases in SettingsHelperRestoreTest were crashing due to a NPE with the logger. This didn't happen in the actual code or in SettingsHelperTest because the logger was set when the flag was on, but I missed to do this in SettingsHelperRestoreTest. This CL sets the logger in the test, and checks for null in the code to be extra safe. Change-Id: I8d5c0fdd9901e889702570b8433853e4f1dbd692 Bug: 379861078 Bug: 394349769 Flag: com.android.server.backup.enable_metrics_settings_backup_agents Tested: atest SettingsHelperTest Tested: atest SettingsRestoreHelperTest
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions