With Kotlin, you shouldn't get unchecked NullPointerExceptions or the related IllegalArgumentException. However, sometimes, Colors and Teams aren't initialised even though they should be, resulting in exceptions that shouldn't exist.
7042b6b (#294) fails due to this.