Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1ffb134 authored by nharold's avatar nharold Committed by Gerrit Code Review
Browse files

Merge "Check ManagedResource is NonNull before Checking Owner"

parents 0f3d90ee b6d2eff8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -206,7 +206,11 @@ public class IpSecService extends IIpSecService.Stub {

        T get(int key) {
            T val = mArray.get(key);
            // The value should never be null unless the resource doesn't exist
            // (since we do not allow null resources to be added).
            if (val != null) {
                val.checkOwnerOrSystemAndThrow();
            }
            return val;
        }