Pavel Grafov 522853818d Fix NPE during migration.
User restrictions are null for PO parent admin, so we need to ensure
they are initialized before adding.

Bug: 147884539
Test: atest com.android.server.devicepolicy.DevicePolicyManagerServiceMigrationTest#testCompMigrationAffiliated
Change-Id: I5024ac585e30081f944717cfe8d4b920b644213e
2020-01-17 18:28:59 +00:00
..
2020-01-09 15:30:11 +00:00