Bug 774156 - Fix NPE in Tabs when "Don't keep activities" is enabled. r=mfinkle

--HG--
extra : rebase_source : 349b50529c10e34197975373233ccc5525ade7fe
This commit is contained in:
Brian Nicholson 2012-07-15 19:56:31 -07:00
parent 4a3cfe132a
commit ee3f6d8da9

View File

@ -101,7 +101,8 @@ public class Tabs implements GeckoEventListener {
mSelectedTab = tab;
GeckoApp.mAppContext.mMainHandler.post(new Runnable() {
public void run() {
GeckoApp.mAppContext.mFormAssistPopup.hide();
if (GeckoApp.mAppContext.mFormAssistPopup != null)
GeckoApp.mAppContext.mFormAssistPopup.hide();
if (isSelectedTab(tab)) {
String url = tab.getURL();
notifyListeners(tab, TabEvents.SELECTED);