Merge "Handle null uris in content changed events." into nyc-dev

This commit is contained in:
Steve McKay
2016-04-19 17:10:24 +00:00
committed by Android (Google) Code Review

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());
}