Merge "Handle null uris in content changed events." into nyc-dev
This commit is contained in:
@@ -110,6 +110,10 @@ public class RootsCache {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onChange(boolean selfChange, Uri uri) {
|
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);
|
if (DEBUG) Log.d(TAG, "Updating roots due to change at " + uri);
|
||||||
updateAuthorityAsync(uri.getAuthority());
|
updateAuthorityAsync(uri.getAuthority());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user