From 75f224c67c020834f2af1d56a5871a02afaa0c07 Mon Sep 17 00:00:00 2001 From: jmacxx <47253594+jmacxx@users.noreply.github.com> Date: Sun, 4 Dec 2022 21:10:06 -0600 Subject: [PATCH] Check filterWarningHandler is set before use. --- core/src/main/java/bisq/core/filter/FilterManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/filter/FilterManager.java b/core/src/main/java/bisq/core/filter/FilterManager.java index 32fd3a2f476..6fc50904089 100644 --- a/core/src/main/java/bisq/core/filter/FilterManager.java +++ b/core/src/main/java/bisq/core/filter/FilterManager.java @@ -159,7 +159,7 @@ public void onAllServicesInitialized() { // On mainNet we expect to have received a filter object, if not show a popup to the user to inform the // Bisq devs. - if (Config.baseCurrencyNetwork().isMainnet() && getFilter() == null) { + if (Config.baseCurrencyNetwork().isMainnet() && getFilter() == null && filterWarningHandler != null) { filterWarningHandler.accept(Res.get("popup.warning.noFilter")); }