Merge "Fixed NPE when dumpSettings is called with a null cursor" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
421eaa7813
@@ -516,7 +516,7 @@ public class SettingsProvider extends ContentProvider {
|
||||
}
|
||||
|
||||
private void dumpSettings(Cursor cursor, PrintWriter pw) {
|
||||
if (!cursor.moveToFirst()) {
|
||||
if (cursor == null || !cursor.moveToFirst()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user