fix npe on initial startup #2

This commit is contained in:
Craig Raw 2021-01-13 11:27:55 +02:00
parent 2faddc1133
commit 3093e4906c

View file

@ -312,7 +312,7 @@ public class AppServices {
} }
public static boolean isConnected() { public static boolean isConnected() {
return onlineProperty.get() && get().connectionService.isConnected(); return onlineProperty.get() && get().connectionService != null && get().connectionService.isConnected();
} }
public static BooleanProperty onlineProperty() { public static BooleanProperty onlineProperty() {