Handle null uris in content changed events.

Bug: 28244958
Change-Id: Id3a7adb0ab4a751cfcf6ed3fee4cc6337ce512bb
This commit is contained in:
Steve McKay
2016-04-18 17:35:41 -07:00
parent 067f821ec8
commit 757fa1b684

View File

@@ -110,6 +110,10 @@ public class RootsCache {
@Override
public void onChange(boolean selfChange, Uri uri) {
if (uri == null) {
Log.w(TAG, "Received onChange event for null uri. Skipping.");
return;
}
if (DEBUG) Log.d(TAG, "Updating roots due to change at " + uri);
updateAuthorityAsync(uri.getAuthority());
}