Merge "Fixed NPE when dumpSettings is called with a null cursor" into mnc-dev

This commit is contained in:
Fyodor Kupolov
2015-06-11 22:29:20 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}