Skip to content

Commit 95c7aa6

Browse files
authored
Bugfix - checking that condition_dsp is not null in the JSON (#220)
1 parent a5d75d7 commit 95c7aa6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NAM/wavenet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ std::unique_ptr<nam::DSP> nam::wavenet::Factory(const nlohmann::json& config, st
573573
const double expectedSampleRate)
574574
{
575575
std::unique_ptr<nam::DSP> condition_dsp = nullptr;
576-
if (config.find("condition_dsp") != config.end())
576+
if (config.find("condition_dsp") != config.end() && !config["condition_dsp"].is_null())
577577
{
578578
const nlohmann::json& condition_dsp_json = config["condition_dsp"];
579579
condition_dsp = nam::get_dsp(condition_dsp_json);

0 commit comments

Comments
 (0)