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

Commit a02d0d60 authored by Karl Rosaen's avatar Karl Rosaen
Browse files

Guard against remote process dying when retrieving column from cursor.

Fixes bug 2035791.
parent 94e114c9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -658,7 +658,14 @@ class SuggestionsAdapter extends ResourceCursorAdapter {
        if (col == NONE) {
            return null;
        }
        try {
            return cursor.getString(col);
        } catch (Exception e) {
            Log.e(LOG_TAG,
                    "unexpected error retrieving valid column from cursor, "
                            + "did the remote process die?", e);
            return null;
        }
    }

}