NPE selectCase LiteralExpression enumerated value

Description

NullPointerException in LiteralExpression#renderProjection. ValueHandlerFactory.determineAppropriateHandler( literal.getClass() ); returns null for enum classes. Triggered when constructing a new result object using a selectCase criteria.

Test Case https://github.com/gilday/HHH-12184

Environment

java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

macOS 10.13.2

MySQL 5.6.31

Assignee

Unassigned

Reporter

Johnathan Gilday

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.1.10

Components

Affects versions

Priority

Minor
Configure