diff options
author | Allan Wang <me@allanwang.ca> | 2021-09-11 14:31:05 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-09-11 14:31:05 -0700 |
commit | 2f2cfd68e8c3d74ca776a6bfc8013828c4308cc3 (patch) | |
tree | 627f6e36ebb5dd26d8f4f4b483b8c6cc371a95e8 /app | |
parent | 958a0d90199837ee63f7d91caca07c1d47748722 (diff) | |
download | frost-2f2cfd68e8c3d74ca776a6bfc8013828c4308cc3.tar.gz frost-2f2cfd68e8c3d74ca776a6bfc8013828c4308cc3.tar.bz2 frost-2f2cfd68e8c3d74ca776a6bfc8013828c4308cc3.zip |
Fix build failure
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/MessageParser.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/MessageParser.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/MessageParser.kt index e1a6c814..ef56aa7b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/MessageParser.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/parsers/MessageParser.kt @@ -128,8 +128,8 @@ private class MessageParserImpl : FrostParserBase<FrostMessages>(true) { ) .mapNotNull(this::parseMessage) val seeMore = parseLink(doc.getElementById("see_older_threads")) - val extraLinks = threadList.nextElementSibling().select("a") - .mapNotNull(this::parseLink) + val extraLinks = threadList.nextElementSibling()?.select("a") + ?.mapNotNull(this::parseLink) ?: emptyList() return FrostMessages(threads, seeMore, extraLinks) } |