diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java index 13c9f7693..dedf40b50 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestExceptionHandler.java @@ -95,7 +95,7 @@ public class RepositoryRestExceptionHandler { ConversionFailedException.class, NullPointerException.class }) ResponseEntity handleMiscFailures(Exception o_O) { - return errorResponse(HttpStatus.INTERNAL_SERVER_ERROR, new HttpHeaders(), null); + return errorResponse(HttpStatus.INTERNAL_SERVER_ERROR, new HttpHeaders(), o_O); } /**