Bug 750195 - java.lang.NullPointerException: at org.mozilla.gecko.GeckoApp.onDestroy(GeckoApp.java) r=bnicholson

This commit is contained in:
Mark Finkle 2012-04-30 16:17:29 -04:00
parent 5afd485ad9
commit ee6b65a5af

View File

@ -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);
}