Ok, i get this error
Index was outside the bounds of the array.
and i always bang my head up the wall what to do with it. Anyway, it’s the enum!
I have a mapping where enums are stored in referenced table. If the table’s empty, my code generator generates an empty enum.
Empty enum then causes this exception.
And that’s basically it! Now off to change that whole enum deal into something smarter….