Skip to content

Commit b1ab1b7

Browse files
authored
ID #1 Change ExceptionInInitializerError to RuntimeException (#32)
TeaVM doesn't know ExceptionInInitializerError and can't compile.
1 parent e7dd0a4 commit b1ab1b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/com/bladecoder/ink/runtime

src/main/java/com/bladecoder/ink/runtime/Json.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ public static ListDefinitionsOrigin jTokenToListDefinitions(Object obj) {
745745

746746
for (int i = 0; i < CommandType.values().length - 1; ++i) {
747747
if (controlCommandNames[i] == null)
748-
throw new ExceptionInInitializerError("Control command not accounted for in serialisation");
748+
throw new RuntimeException("Control command (index " + i + ") not accounted for in serialisation");
749749
}
750750
}
751751
}

0 commit comments

Comments
 (0)