mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 750195 - java.lang.NullPointerException: at org.mozilla.gecko.GeckoApp.onDestroy(GeckoApp.java) r=bnicholson
This commit is contained in:
parent
5afd485ad9
commit
ee6b65a5af
@ -2043,7 +2043,8 @@ abstract public class GeckoApp
|
||||
GeckoAppShell.unregisterGeckoEventListener("Session:StatePurged", GeckoApp.mAppContext);
|
||||
GeckoAppShell.unregisterGeckoEventListener("Bookmark:Insert", GeckoApp.mAppContext);
|
||||
|
||||
mFavicons.close();
|
||||
if (mFavicons != null)
|
||||
mFavicons.close();
|
||||
|
||||
if (SmsManager.getInstance() != null) {
|
||||
SmsManager.getInstance().stop();
|
||||
@ -2053,11 +2054,11 @@ abstract public class GeckoApp
|
||||
|
||||
super.onDestroy();
|
||||
|
||||
mBatteryReceiver.unregisterFor(mAppContext);
|
||||
if (mBatteryReceiver != null)
|
||||
mBatteryReceiver.unregisterFor(mAppContext);
|
||||
|
||||
if (mAboutHomeContent != null) {
|
||||
if (mAboutHomeContent != null)
|
||||
mAboutHomeContent.onDestroy();
|
||||
}
|
||||
|
||||
((GeckoApplication) getApplication()).removeApplicationLifecycleCallbacks(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user