Exception thrown when mapping contains empty enum

Description

I was playing around with new mapping by code and ConventionModelMapper and ran into an "Array ouf bounds exception". Turned out that one of my entities had an enum property and the enum was empty (I haven't yet added any values). As this was a pretty trivial project, the issue was easy to track down but it would be great if this was handled better by NH. Either this should be ignored (what's the harm?) or the error message should point out the empty enum and the class that was referencing it.

Thank you!

Environment

None

Activity

Show:

Alex Zaytsev 
May 1, 2017 at 3:42 AM

Closing issues resolved in 4.1.0

Alex Zaytsev 
February 26, 2015 at 4:39 AM

Merged to master @ bc90e447d7c4e8b9bc50b52db9121f066bcf404d

Alex Zaytsev 
February 25, 2015 at 8:04 AM

Alex Zaytsev 
November 24, 2014 at 8:38 PM

Fix is wrong.

Fabio Maulo 
July 30, 2011 at 2:11 PM

Closed after final release of NH3.2.0GA

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created May 24, 2011 at 9:03 AM
Updated May 1, 2017 at 3:42 AM
Resolved February 26, 2015 at 4:39 AM
Who's Looking?