Bug 1300543 - FilterMimeTypes: Continue to filter mime types if one of them is empty. r=ahunt
authorSebastian Kaspari <s.kaspari@gmail.com>
Mon, 05 Sep 2016 17:37:13 +0200
changeset 354150 714566fb31ec58b36489c6cbd9a4904fac3da778
parent 354149 ceb8ca8e9b2dd446ee8bbe2417baed20ac38f4c6
child 354151 4e9bf0dca65adc5da9c97f0f5e04ec79fca89331
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahunt
bugs1300543
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1300543 - FilterMimeTypes: Continue to filter mime types if one of them is empty. r=ahunt MozReview-Commit-ID: GRFANWF1L2m
mobile/android/base/java/org/mozilla/gecko/icons/preparation/FilterMimeTypes.java
--- a/mobile/android/base/java/org/mozilla/gecko/icons/preparation/FilterMimeTypes.java
+++ b/mobile/android/base/java/org/mozilla/gecko/icons/preparation/FilterMimeTypes.java
@@ -23,17 +23,17 @@ public class FilterMimeTypes implements 
 
         while (iterator.hasNext()) {
             final IconDescriptor descriptor = iterator.next();
             final String mimeType = descriptor.getMimeType();
 
             if (TextUtils.isEmpty(mimeType)) {
                 // We do not have a MIME type for this icon, so we cannot know in advance if we are able
                 // to decode it. Let's just continue.
-                return;
+                continue;
             }
 
             if (!IconsHelper.canDecodeType(mimeType)) {
                 iterator.remove();
             }
         }
     }
 }