From 351bcd524db7309c7ad546dfc05efc9772fdd7a3 Mon Sep 17 00:00:00 2001 From: Marc Beyer Date: Tue, 1 Feb 2022 14:05:22 +0100 Subject: [PATCH] Minor fixes --- client/app/src/main/java/main/MainApplication.java | 4 ++-- client/data/src/main/java/container/Event.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/app/src/main/java/main/MainApplication.java b/client/app/src/main/java/main/MainApplication.java index 403a853..0ecfff9 100644 --- a/client/app/src/main/java/main/MainApplication.java +++ b/client/app/src/main/java/main/MainApplication.java @@ -22,6 +22,8 @@ public class MainApplication extends Application { config = new Config(false, -1, ""); } + DataController.SERVER_URL = config.toServerUrl(); + System.out.println("Ignore 'Illegal reflective access operation'-Warning. See https://github.com/sshahine/JFoenix/issues/1170"); if( @@ -39,8 +41,6 @@ public class MainApplication extends Application { ConfigLoader.save(config); } - DataController.SERVER_URL = config.toServerUrl(); - // Load main-scene loadMainScene(stage); diff --git a/client/data/src/main/java/container/Event.java b/client/data/src/main/java/container/Event.java index 35c1d35..b9958bd 100644 --- a/client/data/src/main/java/container/Event.java +++ b/client/data/src/main/java/container/Event.java @@ -56,7 +56,7 @@ public class Event { this.isFullDay = isFullDay; this.isPrivate = isPrivate; if (start != null) this.start = start.toString(); - if (start != null) this.end = end.toString(); + if (end != null) this.end = end.toString(); this.date = date; this.ownerId = ownerId; }