From 2faddc113390669b931c6e4152b8be0076ce15a4 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 13 Jan 2021 11:23:38 +0200 Subject: [PATCH] fix npe on initial startup --- src/main/java/com/sparrowwallet/sparrow/MainApp.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/MainApp.java b/src/main/java/com/sparrowwallet/sparrow/MainApp.java index 83213f8e..a29add65 100644 --- a/src/main/java/com/sparrowwallet/sparrow/MainApp.java +++ b/src/main/java/com/sparrowwallet/sparrow/MainApp.java @@ -45,6 +45,8 @@ public class MainApp extends Application { GlyphFontRegistry.register(new FontAwesome5Brands()); Font.loadFont(AppServices.class.getResourceAsStream("/font/RobotoMono-Regular.ttf"), 13); + AppServices.initialize(this); + boolean createNewWallet = false; Mode mode = Config.get().getMode(); if(mode == null) { @@ -66,7 +68,6 @@ public class MainApp extends Application { Config.get().setServerType(ServerType.ELECTRUM_SERVER); } - AppServices.initialize(this); AppController appController = AppServices.newAppWindow(stage); if(createNewWallet) {