commit | 1e2adecdf9a206f849e7b0ba2192830717c6b792 | [log] [tgz] |
---|---|---|
author | bkchoi <[email protected]> | Mon Aug 12 04:10:46 2024 +0000 |
committer | bkchoi <[email protected]> | Mon Aug 12 14:55:31 2024 +0000 |
tree | 404a1adef2bcfafe1489218befc0de3ae0d1fb37 | |
parent | d42c8a522d58c41f9765cf45d046d6f62ea06929 [diff] |
Fix NPE due to a null package name of system enforcing admin. mPackageName is assumed to be non-null. Set it to an empty string to avoid a null pointer exception during saveToXml(). Bug: 358733540 Flag: EXEMPT bugfix Test: - start MD emulator - Start New Profile - $ adb shell dumpsys user - $ adb shell dumpsys device_policy Change-Id: I962e2bb89c573fdaaa29b41f5b6c81df881cb56c