prevent aiobe
This commit is contained in:
parent
d869f2ef48
commit
7bd3c22b8a
|
@ -174,6 +174,9 @@ public class SBOverlay {
|
||||||
|
|
||||||
public void updateIndex(int index) {
|
public void updateIndex(int index) {
|
||||||
this.index = index;
|
this.index = index;
|
||||||
|
if (index >= optionsMap.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
HashMap options = optionsMap[index];
|
HashMap options = optionsMap[index];
|
||||||
if (options != null) {
|
if (options != null) {
|
||||||
for (Object o : options.entrySet()) {
|
for (Object o : options.entrySet()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user