Skip to content

Commit

Permalink
Try to fix Lint error with getColumnIndexOrThrow instead of getColumn…
Browse files Browse the repository at this point in the history
…Index
  • Loading branch information
jkoan committed May 23, 2022
1 parent 016a9bf commit 3be4921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion navit/android/src/org/navitproject/navit/NavitTraff.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private void fetchMessages(Context context, Uri uri) {
}
StringBuilder builder = new StringBuilder("<feed>\n");
while (cursor.moveToNext())
builder.append(cursor.getString(cursor.getColumnIndex(COLUMN_DATA))).append("\n");
builder.append(cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_DATA))).append("\n");
builder.append("</feed>");
cursor.close();
onFeedReceived(mCbid, builder.toString());
Expand Down

0 comments on commit 3be4921

Please sign in to comment.