prevent aiobe

This commit is contained in:
yugecin 2016-11-13 00:27:38 +01:00
parent d869f2ef48
commit 7bd3c22b8a

View File

@ -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()) {