#1294 Landing page is not displayed on Wikimedia zims develop fix

This commit is contained in:
Sean Mac Gillicuddy 2019-08-09 12:19:46 +01:00
parent ca1fff31cf
commit 70f26a75dd

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) {