Fixed NPE when dumpSettings is called with a null cursor
Bug: 20070414 Change-Id: I15d5d2ae27a7892807221421778082e0f29a36ff
This commit is contained in:
@@ -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