diff --git a/src/main/java/cli/Main.java b/src/main/java/cli/Main.java index 44a89505..728ea35b 100644 --- a/src/main/java/cli/Main.java +++ b/src/main/java/cli/Main.java @@ -141,7 +141,10 @@ public class Main { System.err.println("User is not registered."); System.exit(1); } - int timeout = ns.getInt("timeout"); + int timeout = 5; + if (ns.getInt("timeout") != null) { + timeout = ns.getInt("timeout"); + } boolean returnOnTimeout = true; if (timeout < 0) { returnOnTimeout = false;