Merge "Handle null uris in content changed events." into nyc-dev
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user