Commit b3569be7 authored by Jason Voll's avatar Jason Voll
Browse files

Bug 710418 - Browser content provider can't handle null projections in query. r=blassey, a=rnewman

parent 043ebf19
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
 *
 * Contributor(s):
 *   Lucas Rocha <lucasr@mozilla.com>
 *   Jason Voll <jvoll@mozilla.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -247,6 +248,7 @@ public class BrowserProvider extends ContentProvider {
    }

    private static boolean hasImagesInProjection(String[] projection) {
        if (projection == null) return true;
        for (int i = 0; i < projection.length; ++i) {
            if (projection[i].equals(Images.FAVICON) ||
                projection[i].equals(Images.THUMBNAIL))