mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Escape vertical bar when splitting seed node addresses in command line
Otherwise it is interpreted as a special regular expression character and all characters are splitted apart, causing a ``NullPointerException`` after further splitting on ``:``.
This commit is contained in:
parent
4c0cc738e4
commit
184fc55636
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class SeedNode {
|
|||
String arg4 = args[4];
|
||||
checkArgument(arg4.contains(":") && arg4.split(":").length > 1 && arg4.split(":")[1].length() > 3,
|
||||
"Wrong program argument");
|
||||
List<String> list = Arrays.asList(arg4.split("|"));
|
||||
List<String> list = Arrays.asList(arg4.split("\\|"));
|
||||
progArgSeedNodes = new HashSet<>();
|
||||
list.forEach(e -> {
|
||||
checkArgument(e.contains(":") && e.split(":").length == 2 && e.split(":")[1].length() == 4,
|
||||
|
|
Loading…
Add table
Reference in a new issue