Bug 813546 - Guard against null keys when queryng favicon mem cache (r=mfinkle)

This commit is contained in:
Lucas Rocha 2013-06-04 15:14:06 +01:00
parent 6d3218ffe0
commit ad4c467134

View File

@ -139,6 +139,12 @@ public class Favicons {
}
public Bitmap getFaviconFromMemCache(String pageUrl) {
// If for some reason the key is null, simply return null
// and avoid an exception on the mem cache (see bug 813546)
if (pageUrl == null) {
return null;
}
return mFaviconsCache.get(pageUrl);
}