Bug 714762 - ArrayIndexOutOfBoundsException at Tabs.getTabAt [r=kats]

This commit is contained in:
Mark Finkle 2012-01-03 12:19:47 -05:00
parent 484b1cc589
commit 6a90caea7a

View File

@ -106,7 +106,7 @@ public class Tabs implements GeckoEventListener {
}
public Tab getTabAt(int index) {
if (index < order.size())
if (index >= 0 && index < order.size())
return order.get(index);
else
return null;