From 48a3e9287f54979a68edf0f65afcf95f64c3b8cd Mon Sep 17 00:00:00 2001 From: Volodymyr Kravets Date: Fri, 17 Feb 2023 20:11:03 +0200 Subject: [PATCH] Fixed sonar complaint --- rskj-core/src/main/java/co/rsk/RskContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rskj-core/src/main/java/co/rsk/RskContext.java b/rskj-core/src/main/java/co/rsk/RskContext.java index d3f798abe6d..ba9beb15b90 100644 --- a/rskj-core/src/main/java/co/rsk/RskContext.java +++ b/rskj-core/src/main/java/co/rsk/RskContext.java @@ -636,7 +636,7 @@ public synchronized RskSystemProperties getRskSystemProperties() { .orElse(new ArrayList<>()) .contains("*"); - if (acceptAnyHost && rskSystemProperties.isWalletEnabled()) { + if (acceptAnyHost && rskSystemProperties != null && rskSystemProperties.isWalletEnabled()) { logger.warn("It is not recommended to bypass hosts checks, by setting '*' in" + " the host list, and have wallet enabled both together." + " If you bypass hosts check we suggest to have wallet disabled, the same thing" +