mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
fix npe on initial startup #2
This commit is contained in:
parent
2faddc1133
commit
3093e4906c
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue