Commit 2e639499 authored by Sven Greiner's avatar Sven Greiner
Browse files

Fix NoSuchElementException

parent af51e4ee
......@@ -38,7 +38,8 @@ class PeriodicRssFetcher(url: String, pollInterval: Long, callback: String => Un
Log.d("" + posts.size + " new posts, but this was the first fetch")
}
lastMessageTime = posts.last._3
if (posts.size > 0)
lastMessageTime = posts.last._3
} catch {
case e => Log.e("Cannot fetch or post RSS: " + e)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment