Skip to content

Commit

Permalink
Merge pull request free-audio#43 from NatureIsFrequency/Fix_Issue_#40
Browse files Browse the repository at this point in the history
  • Loading branch information
abique authored Feb 7, 2024
2 parents 7fe81f8 + 5f86d60 commit 4c4c7f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions host/plugin-host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,12 @@ void PluginHost::remoteControlsSuggestPage(clap_id page_id) noexcept {
bool PluginHost::loadNativePluginPreset(const std::string &path) {
checkForMainThread();

if(!_plugin)
{
std::cerr << "called with a null clap_plugin pointer!" << std::endl;
return false;
}

if (!_plugin->canUsePresetLoad())
return false;

Expand Down

0 comments on commit 4c4c7f1

Please sign in to comment.