diff --git a/SimpleLoadingBar.java b/SimpleLoadingBar.java index 266d01b..0ab2fe0 100644 --- a/SimpleLoadingBar.java +++ b/SimpleLoadingBar.java @@ -35,7 +35,8 @@ class SimpleLoadingBar { verifyTimeFormat(nextArg, "Zweites Argument"); endTime = LocalTime.parse(nextArg, TIME_FORMATTER); } - } else { + } + if (endTime == null) { startTime = LocalTime.now(); endTime = firstTime; }