summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2010-05-19 09:36:55 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2010-05-19 09:36:55 -0700
commitee1cdd0e605e9154b3b61d4bf7dd5aad9cab88ed (patch)
treef7da48d8a34c885a822148e9702a8bd0df868540
parent2b544c9f0ea139d052664be0be465c2315707081 (diff)
parentbcb62f099a8619c1045df54e33d43cde85af4036 (diff)
downloadframeworks_base-ee1cdd0e605e9154b3b61d4bf7dd5aad9cab88ed.zip
frameworks_base-ee1cdd0e605e9154b3b61d4bf7dd5aad9cab88ed.tar.gz
frameworks_base-ee1cdd0e605e9154b3b61d4bf7dd5aad9cab88ed.tar.bz2
merge from open-source master
Change-Id: I1612bf92bf47eb88299ed0e627e6662b23adc35a
-rw-r--r--core/java/android/content/ContentService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/content/ContentService.java b/core/java/android/content/ContentService.java
index 377e383..fc2dfc0 100644
--- a/core/java/android/content/ContentService.java
+++ b/core/java/android/content/ContentService.java
@@ -537,6 +537,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);