We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94424d1 + 8a7cc74 commit 7521bacCopy full SHA for 7521bac
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