mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
Bug 813546 - Guard against null keys when queryng favicon mem cache (r=mfinkle)
This commit is contained in:
parent
6d3218ffe0
commit
ad4c467134
@ -139,6 +139,12 @@ public class Favicons {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Bitmap getFaviconFromMemCache(String pageUrl) {
|
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);
|
return mFaviconsCache.get(pageUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user