SpecSelector crashes if passed an empty list on load
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:458)
at com.fossgalaxy.games.tbs.editor.panels.SpecSelector.resetTypes(SpecSelector.java:86)
at com.fossgalaxy.games.tbs.editor.panels.SpecSelector.<init>(SpecSelector.java:40)
at com.fossgalaxy.games.tbs.editor.panels.TerrainSelector.<init>(TerrainSelector.java:17)
at com.fossgalaxy.games.tbs.editor.Editor.run(Editor.java:125)
at com.fossgalaxy.games.tbs.editor.Editor.main(Editor.java:62)
at com.fossgalaxy.games.hexboard.games.hexcom.HexComEditor.main(HexComEditor.java:12)