mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 731483 - Fix NPE for thumbnails when Gecko is busy. r=blassey
This commit is contained in:
parent
df7308abde
commit
89bdffea29
@ -455,10 +455,13 @@ public class GeckoAppShell
|
||||
final int width, final int height) {
|
||||
getHandler().post(new Runnable() {
|
||||
public void run() {
|
||||
final Tab tab = Tabs.getInstance().getTab(tabId);
|
||||
if (tab == null)
|
||||
return;
|
||||
|
||||
Bitmap b = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
|
||||
b.copyPixelsFromBuffer(data);
|
||||
freeDirectBuffer(data);
|
||||
final Tab tab = Tabs.getInstance().getTab(tabId);
|
||||
GeckoApp.mAppContext.processThumbnail(tab, b, null);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user