Skip to content

Commit

Permalink
Fixed sonar complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovchyk committed Feb 17, 2023
1 parent b7f4e82 commit 48a3e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rskj-core/src/main/java/co/rsk/RskContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down

0 comments on commit 48a3e92

Please sign in to comment.