From 7e5c0268eac60066e56c94d555f9091e28db64d4 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 31 Aug 2022 12:47:30 +0200 Subject: [PATCH] Fix FreshRSS get link #fix https://github.com/readrops/Readrops/issues/162 #fix https://github.com/FreshRSS/FreshRSS/issues/4567 --- .../services/freshrss/adapters/FreshRSSItemsAdapter.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/com/readrops/api/services/freshrss/adapters/FreshRSSItemsAdapter.kt b/api/src/main/java/com/readrops/api/services/freshrss/adapters/FreshRSSItemsAdapter.kt index 74cf14b3..aafecdb5 100644 --- a/api/src/main/java/com/readrops/api/services/freshrss/adapters/FreshRSSItemsAdapter.kt +++ b/api/src/main/java/com/readrops/api/services/freshrss/adapters/FreshRSSItemsAdapter.kt @@ -89,9 +89,11 @@ class FreshRSSItemsAdapter : JsonAdapter>() { while (reader.hasNext()) { reader.beginObject() - when (reader.nextName()) { - "href" -> href = reader.nextNullableString() - else -> reader.skipValue() + while (reader.hasNext()) { + when (reader.nextName()) { + "href" -> href = reader.nextString() + else -> reader.skipValue() + } } reader.endObject()