Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f450dbf authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Fixed NPE when dumpSettings is called with a null cursor

Bug: 20070414
Change-Id: I15d5d2ae27a7892807221421778082e0f29a36ff
parent b3c134e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }