From 060166ed48c3733f38f826f10cb8267529487e76 Mon Sep 17 00:00:00 2001 From: agrgr Date: Wed, 22 May 2024 22:49:57 +0300 Subject: [PATCH] Qualifier builder API redesign --- .../data/aerospike/query/qualifier/BaseQualifierBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/aerospike/query/qualifier/BaseQualifierBuilder.java b/src/main/java/org/springframework/data/aerospike/query/qualifier/BaseQualifierBuilder.java index 5449e66ab..c154511ad 100644 --- a/src/main/java/org/springframework/data/aerospike/query/qualifier/BaseQualifierBuilder.java +++ b/src/main/java/org/springframework/data/aerospike/query/qualifier/BaseQualifierBuilder.java @@ -19,7 +19,8 @@ public abstract class BaseQualifierBuilder> im protected final Map map = new HashMap<>(); public boolean getIgnoreCase() { - return Boolean.parseBoolean(map.get(IGNORE_CASE).toString()); + Object ignoreCase = map.get(IGNORE_CASE); + return ignoreCase != null && Boolean.parseBoolean(ignoreCase.toString()); } public FilterOperation getFilterOperation() {