Closed ruudkenter closed 7 years ago
When using a Enum with only item, EnumInstantiator crashes due to lenght being 1:
int random = (new Random()).nextInt(length - 1);
nextInt throws IllegalArgumentException because the integer passed = 0;
Duplicates #199 which is already done. Waits for new version, which waits for more bug fixes ;)
When using a Enum with only item, EnumInstantiator crashes due to lenght being 1:
int random = (new Random()).nextInt(length - 1);
nextInt throws IllegalArgumentException because the integer passed = 0;