mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 738976 - java.lang.NullPointerException at org.mozilla.gecko.db.LocalBrowserDB.updateFaviconForUrl r=blassey
This commit is contained in:
parent
db141ca533
commit
6f47a41cd7
@ -593,6 +593,8 @@ public class LocalBrowserDB implements BrowserDB.BrowserDBIface {
|
||||
public void updateFaviconForUrl(ContentResolver cr, String uri,
|
||||
BitmapDrawable favicon) {
|
||||
Bitmap bitmap = favicon.getBitmap();
|
||||
if (bitmap == null)
|
||||
return;
|
||||
|
||||
ByteArrayOutputStream stream = new ByteArrayOutputStream();
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
|
||||
|
Loading…
Reference in New Issue
Block a user