From 3093e4906c03f287130d42b8a1b245cab31be2e3 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 13 Jan 2021 11:27:55 +0200 Subject: [PATCH] fix npe on initial startup #2 --- src/main/java/com/sparrowwallet/sparrow/AppServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index 5f75fdbb..10877678 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -312,7 +312,7 @@ public class AppServices { } public static boolean isConnected() { - return onlineProperty.get() && get().connectionService.isConnected(); + return onlineProperty.get() && get().connectionService != null && get().connectionService.isConnected(); } public static BooleanProperty onlineProperty() {