Skip to content

Commit 8693240

Browse files
[ISSUE #210] Unable to Start DLedger without config.yaml (#211)
1 parent 584c2de commit 8693240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/openmessaging/storage/dledger/DLedger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class DLedger {
3434

3535
public static void main(String[] args) {
3636
List<DLedgerConfig> dLedgerConfigs = new LinkedList<>();
37-
if ("--config".equals(args[0]) || "-c".equals(args[0])) {
37+
if (args.length > 0 && ("--config".equals(args[0]) || "-c".equals(args[0]))) {
3838
ConfigCommand configCommand = new ConfigCommand();
3939
JCommander.newBuilder().addObject(configCommand).build().parse(args);
4040
try {

0 commit comments

Comments
 (0)