Bug 713578 - java.lang.NullPointerException at org.mozilla.gecko.Tabs.closeTab [r=blassey]

This commit is contained in:
Mark Finkle 2011-12-27 01:07:41 -05:00
parent 31d980c48b
commit 2a9582b367

View File

@ -141,7 +141,7 @@ public class Tabs implements GeckoEventListener {
/** Close tab and then select nextTab */ /** Close tab and then select nextTab */
public void closeTab(Tab tab, Tab nextTab) { public void closeTab(Tab tab, Tab nextTab) {
if (tab == null) if (tab == null || nextTab == null)
return; return;
GeckoAppShell.sendEventToGecko(new GeckoEvent("Tab:Select", String.valueOf(nextTab.getId()))); GeckoAppShell.sendEventToGecko(new GeckoEvent("Tab:Select", String.valueOf(nextTab.getId())));