Skip to content

Commit d67dab7

Browse files
committed
added nullables
1 parent 89fa993 commit d67dab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OGParser/src/main/java/com/kedia/ogparser/OpenGraphParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class OpenGraphParser(
102102
return@withContext null
103103
}
104104

105-
if (openGraphResult!!.title?.isEmpty() == true && openGraphResult!!.description?.isEmpty() == true && showNullOnEmpty) {
105+
if ((openGraphResult!!.title?.isEmpty() == true || openGraphResult!!.title.equals("null")) && (openGraphResult!!.description?.isEmpty() == true || openGraphResult!!.description.equals("null")) && showNullOnEmpty) {
106106
launch(Dispatchers.Main) {
107107
listener.onError("Null or empty response from the server")
108108
}

0 commit comments

Comments
 (0)