Skip to content

Commit 7521bac

Browse files
authored
Merge pull request #10 from sta-con/issue_3
Update OpenGraphParser.kt
2 parents 94424d1 + 8a7cc74 commit 7521bac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class OpenGraphParser(
107107
return@withContext null
108108
}
109109

110-
if ((openGraphResult!!.title?.isEmpty() == true || openGraphResult!!.title.equals("null")) && (openGraphResult!!.description?.isEmpty() == true || openGraphResult!!.description.equals("null")) && showNullOnEmpty) {
110+
if ((openGraphResult!!.title.isNullOrEmpty() || openGraphResult!!.title.equals("null")) && (openGraphResult!!.description.isNullOrEmpty() || openGraphResult!!.description.equals("null")) && showNullOnEmpty) {
111111
launch(Dispatchers.Main) {
112112
listener.onError("Null or empty response from the server")
113113
}

0 commit comments

Comments
 (0)