From 51812ccc975131a925c0510c51172d3255610f90 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Wed, 14 Jun 2017 15:32:40 +0200 Subject: [PATCH] DATAREST-1092 - Removed Spring 4.3 style handling of non-nullability in PatchOperations. --- .../data/rest/webmvc/json/patch/PatchOperation.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java index aa35ea499..dcf404e0e 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/patch/PatchOperation.java @@ -105,8 +105,6 @@ public abstract class PatchOperation { try { expression.setValue(target, null); return value; - } catch (NullPointerException o_O) { - throw new PatchException("Path '" + removePath + "' is not nullable.", o_O); } catch (SpelEvaluationException o_O) { throw new PatchException("Path '" + removePath + "' is not nullable.", o_O); }