From 5e6bf9e22b6bb21fef17da48c32483af8ed1129e Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 14 Jan 2025 09:10:12 -0500 Subject: [PATCH] fix fallback prompt with null daemon connection --- core/src/main/java/haveno/core/api/XmrConnectionService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/api/XmrConnectionService.java b/core/src/main/java/haveno/core/api/XmrConnectionService.java index 2ffcc95d65..dfac9bc85a 100644 --- a/core/src/main/java/haveno/core/api/XmrConnectionService.java +++ b/core/src/main/java/haveno/core/api/XmrConnectionService.java @@ -725,8 +725,8 @@ public final class XmrConnectionService { // poll daemon if (daemon == null) switchToBestConnection(); - if (daemon == null) throw new RuntimeException("No connection to Monero daemon"); try { + if (daemon == null) throw new RuntimeException("No connection to Monero daemon"); lastInfo = daemon.getInfo(); } catch (Exception e) { @@ -753,6 +753,7 @@ public final class XmrConnectionService { // switch to best connection switchToBestConnection(); + if (daemon == null) throw new RuntimeException("No connection to Monero daemon after error handling"); lastInfo = daemon.getInfo(); // caught internally if still fails }