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

Commit d4543c51 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 20108 into donut

* changes:
  Guard against remote process dying when retrieving column from cursor.
parents 69423302 a02d0d60
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;
        }
    }

}