commit | 20b4d846edafeaacf0da2c810f511c236fdbd187 | [log] [tgz] |
---|---|---|
author | Annie Meng <anniemeng@google.com> | Fri May 18 15:00:49 2018 +0100 |
committer | Annie Meng <anniemeng@google.com> | Mon May 21 13:52:16 2018 +0100 |
tree | 3b765da75bea34203afce7dfc204dadd67940816 | |
parent | 167b451daa1893ee9b15cb25bfba627a7254acd3 [diff] |
Fix NPE in restoring network policies When backing up network policies, we write null for policies that are null or are inferred. When restoring, this sends null policies to be set which results in a NPE. Bug: 79961560 Test: 1) atest NetworkPolicyManagerServiceTest 2) Manual: adb restore using backup set with null policies does not crash Change-Id: I450685e38acae0658ea984b86ca8b17ca27a71a6