From 284cdd9bc854a8ff71cfe05a6fc6b83bc6b010c5 Mon Sep 17 00:00:00 2001 From: Artur M Date: Tue, 27 Oct 2015 18:14:26 +0500 Subject: [PATCH] =?UTF-8?q?DATAREST-706=20-=20RepositoryExceptionHandler.h?= =?UTF-8?q?andleMiscFailures(=E2=80=A6)=20now=20passes=20exception=20inste?= =?UTF-8?q?ad=20of=20null.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original pull request: #200. --- .../data/rest/webmvc/RepositoryRestExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**