Fixed NPE when dumpSettings is called with a null cursor

Bug: 20070414
Change-Id: I15d5d2ae27a7892807221421778082e0f29a36ff
This commit is contained in:
Fyodor Kupolov
2015-06-11 15:25:59 -07:00
parent b3c134e161
commit 1f450dbfbc

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