File tree Expand file tree Collapse file tree
OGParser/src/main/java/com/kedia/ogparser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class OpenGraphParser(
102102 return @withContext null
103103 }
104104
105- if (openGraphResult!! .title.isEmpty() && openGraphResult!! .description.isEmpty() && showNullOnEmpty) {
105+ if (openGraphResult!! .title? .isEmpty() == true && openGraphResult!! .description? .isEmpty() == true && showNullOnEmpty) {
106106 launch(Dispatchers .Main ) {
107107 listener.onError(" Null or empty response from the server" )
108108 }
Original file line number Diff line number Diff line change 11package com.kedia.ogparser
22
33data class OpenGraphResult (
4- var title : String = " " ,
5- var description : String = " " ,
6- var url : String = " " ,
7- var image : String = " " ,
8- var siteName : String = " " ,
9- var type : String = " "
4+ var title : String? = null ,
5+ var description : String? = null ,
6+ var url : String? = null ,
7+ var image : String? = null ,
8+ var siteName : String? = null ,
9+ var type : String? = null
1010)
You can’t perform that action at this time.
0 commit comments