From 19108606b0bc64c921e9c7ef09bb37bc69fbd208 Mon Sep 17 00:00:00 2001 From: Christoph Lorenz Date: Tue, 31 May 2022 15:00:08 +0200 Subject: [PATCH] Fix potential NullPointer --- .../java/de/digitalcollections/model/list/ListResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dc-model/src/main/java/de/digitalcollections/model/list/ListResponse.java b/dc-model/src/main/java/de/digitalcollections/model/list/ListResponse.java index ccf28392..4301e158 100644 --- a/dc-model/src/main/java/de/digitalcollections/model/list/ListResponse.java +++ b/dc-model/src/main/java/de/digitalcollections/model/list/ListResponse.java @@ -87,7 +87,7 @@ public List getContent() { public String getExecutedSearchTerm() { if (executedSearchTerm == null) { // no changes on original searchTerm - return listRequest.getSearchTerm(); + return listRequest != null ? listRequest.getSearchTerm() : null; } return executedSearchTerm; }