mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1025931 - Crash java.lang.NullPointerException in in org.mozilla.gecko.GeckoAppShell.getContext r=snorp
This commit is contained in:
parent
f4faa3590d
commit
e0d05127b0
@ -2095,6 +2095,8 @@ public class GeckoAppShell
|
||||
|
||||
@WrapElementForJNI(allowMultithread = true)
|
||||
public static Context getContext() {
|
||||
if (sContextGetter == null)
|
||||
return null;
|
||||
return sContextGetter.getContext();
|
||||
}
|
||||
|
||||
|
@ -102,6 +102,8 @@ public class GeckoApplication extends Application
|
||||
}
|
||||
|
||||
public void onActivityResume(GeckoActivityStatus activity) {
|
||||
GeckoAppShell.setContextGetter(this);
|
||||
|
||||
if (mPausedGecko) {
|
||||
GeckoAppShell.sendEventToGecko(GeckoEvent.createAppForegroundingEvent());
|
||||
mPausedGecko = false;
|
||||
|
Loading…
Reference in New Issue
Block a user