We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94424d1 commit 8a7cc74Copy full SHA for 8a7cc74
1 file changed
OGParser/src/main/java/com/kedia/ogparser/OpenGraphParser.kt
@@ -107,7 +107,7 @@ class OpenGraphParser(
107
return@withContext null
108
}
109
110
- if ((openGraphResult!!.title?.isEmpty() == true || openGraphResult!!.title.equals("null")) && (openGraphResult!!.description?.isEmpty() == true || openGraphResult!!.description.equals("null")) && showNullOnEmpty) {
+ if ((openGraphResult!!.title.isNullOrEmpty() || openGraphResult!!.title.equals("null")) && (openGraphResult!!.description.isNullOrEmpty() || openGraphResult!!.description.equals("null")) && showNullOnEmpty) {
111
launch(Dispatchers.Main) {
112
listener.onError("Null or empty response from the server")
113
0 commit comments