From 903481e63b088b3224b62142ea8aeb0bf80dc4bb Mon Sep 17 00:00:00 2001 From: fabianArbeit Date: Wed, 7 Aug 2024 12:06:12 +0200 Subject: [PATCH] - fix Verhalten mit einem Datum und Endnachricht --- SimpleLoadingBar.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }