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