We upgraded hibernate from 3.6.0 to 4.3.5 but the application fails if null is passed to Session.evict() The application passes null since the code is generic. Are there any alternatives? Thanks, Amit.