aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv')
-rw-r--r--src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java b/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java
index d256616..88a2d0f 100644
--- a/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java
+++ b/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java
@@ -55,8 +55,7 @@ public class ConfigUtil {
* @return Config
*/
public ConfigType convert(Map<String, String> values) {
- Boolean performQueryPersonRequest = values.get(TNVZ_REQUEST_KEY) == null
- ? null : Boolean.getBoolean(values.get(TNVZ_REQUEST_KEY));
+ Boolean performQueryPersonRequest = booleanOrNull(values.get(TNVZ_REQUEST_KEY));
var msgClientParams = filterMapByPrefix(values, MSG_CLIENT_KEY);
ClientType msgClient = msgClientParams.isEmpty()
@@ -186,7 +185,7 @@ public class ConfigUtil {
private Boolean booleanOrNull(String value) {
- return value == null ? null : Boolean.getBoolean(value);
+ return value == null ? null : Boolean.valueOf(value);
}
private BigInteger bigIntOrNull(String value) {