Merge pull request #1341 from kiwix/hotfix/macgills/#1294-landing-pages-broken-for-develop

#1294 Landing page is not displayed on Wikimedia zims develop fix
This commit is contained in:
Kelson 2019-08-10 17:37:56 +03:00 committed by GitHub
commit 9af192f213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,7 +342,7 @@ public class ZimContentProvider extends ContentProvider {
// This is the code which retrieve the mimeType from the libzim
// "slow" and still bugyy
if (mimeType.isEmpty()) {
if (mimeType == null || mimeType.isEmpty()) {
String t = uri.toString();
int pos = uri.toString().indexOf(CONTENT_URI.toString());
if (pos != -1) {