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

Commit bcb62f09 authored by Romain Guy's avatar Romain Guy Committed by Android Code Review
Browse files

Merge "Don't allow invalid Uris to be added as observers."

parents a3e76455 f5126647
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -496,6 +496,9 @@ public final class ContentService extends IContentService.Stub {

            // Look to see if the proper child already exists
            String segment = getUriSegment(uri, index);
            if (segment == null) {
                throw new IllegalArgumentException("Invalid Uri (" + uri + ") used for observer");
            }
            int N = mChildren.size();
            for (int i = 0; i < N; i++) {
                ObserverNode node = mChildren.get(i);