Guard against remote process dying when retrieving column from cursor.

Fixes bug 2035791.
This commit is contained in:
Karl Rosaen
2009-08-05 09:44:06 -07:00
parent 94e114c951
commit a02d0d6020

View File

@@ -658,7 +658,14 @@ class SuggestionsAdapter extends ResourceCursorAdapter {
if (col == NONE) {
return null;
}
return cursor.getString(col);
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;
}
}
}