mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 714762 - ArrayIndexOutOfBoundsException at Tabs.getTabAt [r=kats]
This commit is contained in:
parent
484b1cc589
commit
6a90caea7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user