OSDN Git Service

Check ManagedResource is NonNull before Checking Owner
authorNathan Harold <nharold@google.com>
Thu, 6 Jul 2017 23:57:51 +0000 (16:57 -0700)
committerNathan Harold <nharold@google.com>
Fri, 7 Jul 2017 04:12:38 +0000 (21:12 -0700)
commitb6d2eff8b1ad4ceed1f8a97f19e43aff5452898f
treec4213c1f4db2221864a2797cb948a9b38cc7ead9
parent4ff3cf1eca71e61896a6f4a493974113656f3fd5
Check ManagedResource is NonNull before Checking Owner

If an invalid Resource Id is provided to the Managed Resource
Array getter, we should just return null rather than asserting
the owner of the resource.

Bug: none
Test: tbd
Change-Id: I407a96e4e82e9d6bf68e89380a88d3851efe4305
services/core/java/com/android/server/IpSecService.java