From d1b8127cd8d1ec90263455e615c21c1a2b16c568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Felipe=20Santos?= <5733+jfsantos@users.noreply.github.com> Date: Tue, 10 Feb 2026 10:29:50 -0800 Subject: [PATCH] Bugfix - checking that condition_dsp is not null in the JSON --- NAM/wavenet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NAM/wavenet.cpp b/NAM/wavenet.cpp index 7d9b5d0..efd02ff 100644 --- a/NAM/wavenet.cpp +++ b/NAM/wavenet.cpp @@ -573,7 +573,7 @@ std::unique_ptr nam::wavenet::Factory(const nlohmann::json& config, st const double expectedSampleRate) { std::unique_ptr condition_dsp = nullptr; - if (config.find("condition_dsp") != config.end()) + if (config.find("condition_dsp") != config.end() && !config["condition_dsp"].is_null()) { const nlohmann::json& condition_dsp_json = config["condition_dsp"]; condition_dsp = nam::get_dsp(condition_dsp_json);