Avoiding the app to crash when no internet conection is found.

This commit is contained in:
sergiotarxz 2022-02-18 15:08:24 +01:00
parent 02048bf41d
commit 6892ddcddc

View File

@ -352,6 +352,9 @@ mg_backend_readmng_get_featured_manga (MgBackendReadmng *self) {
GListStore *mangas; GListStore *mangas;
xmlDocPtr html_document; xmlDocPtr html_document;
html_document = mg_backend_readmng_fetch_xml_main_page (self); html_document = mg_backend_readmng_fetch_xml_main_page (self);
if (!html_document) {
return NULL;
}
mangas = mg_backend_readmng_parse_main_page (self, html_document); mangas = mg_backend_readmng_parse_main_page (self, html_document);
xmlFreeDoc (html_document); xmlFreeDoc (html_document);