Fixed an issue with the article reader.

This commit is contained in:
Amine 2017-06-06 18:54:17 +02:00
parent 65a912f271
commit f363bbcc0c

View File

@ -56,7 +56,7 @@ class ReaderActivity : DragDismissActivity() {
parser.parseUrl(url).enqueue(object : Callback<ParsedContent> {
override fun onResponse(call: Call<ParsedContent>, response: Response<ParsedContent>) {
if (response.body() != null && response.body()!!.content.isNotEmpty()) {
if (response.body() != null && response.body()!!.content != null && response.body()!!.content.isNotEmpty()) {
source.text = response.body()!!.domain
title.text = response.body()!!.title
if (response.body()!!.content != null && !response.body()!!.content.isEmpty())