Skip to content
Snippets Groups Projects
Commit 731a9e9b authored by srosse's avatar srosse
Browse files

OO-1953: the slot array can be empty

parent 2f11cd9a
No related branches found
No related tags found
No related merge requests found
...@@ -687,7 +687,9 @@ public class GTAManagerImpl implements GTAManager, DeletableGroupData { ...@@ -687,7 +687,9 @@ public class GTAManagerImpl implements GTAManager, DeletableGroupData {
if(nextSlot == null) { if(nextSlot == null) {
//begin a new round //begin a new round
nextSlot = slots[0]; if (slots.length > 0) {
nextSlot = slots[0];
}
} }
return nextSlot; return nextSlot;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment