From 3be4921589a838343a2d3be68c8a9b72faeddb93 Mon Sep 17 00:00:00 2001 From: jkoan Date: Wed, 6 Oct 2021 11:12:20 +0200 Subject: [PATCH] Try to fix Lint error with getColumnIndexOrThrow instead of getColumnIndex --- navit/android/src/org/navitproject/navit/NavitTraff.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navit/android/src/org/navitproject/navit/NavitTraff.java b/navit/android/src/org/navitproject/navit/NavitTraff.java index fd499b70b5..75d19841c3 100644 --- a/navit/android/src/org/navitproject/navit/NavitTraff.java +++ b/navit/android/src/org/navitproject/navit/NavitTraff.java @@ -357,7 +357,7 @@ private void fetchMessages(Context context, Uri uri) { } StringBuilder builder = new StringBuilder("\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(""); cursor.close(); onFeedReceived(mCbid, builder.toString());