зеркало из https://github.com/mozilla/gecko-dev.git
Bug 714762 - ArrayIndexOutOfBoundsException at Tabs.getTabAt [r=kats]
This commit is contained in:
Родитель
484b1cc589
Коммит
6a90caea7a
|
@ -106,7 +106,7 @@ public class Tabs implements GeckoEventListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tab getTabAt(int index) {
|
public Tab getTabAt(int index) {
|
||||||
if (index < order.size())
|
if (index >= 0 && index < order.size())
|
||||||
return order.get(index);
|
return order.get(index);
|
||||||
else
|
else
|
||||||
return null;
|
return null;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче