We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ccb82 commit 6558227Copy full SHA for 6558227
pluginmanager.cpp
@@ -352,7 +352,10 @@ vector<Ref<Extension>> Repository::GetPlugins() const
352
353
Ref<Extension> Repository::GetPluginByPath(const string& pluginPath)
354
{
355
- return new Extension(BNRepositoryGetPluginByPath(m_object, pluginPath.c_str()));
+ BNPlugin* plugin = BNRepositoryGetPluginByPath(m_object, pluginPath.c_str());
356
+ if (!plugin)
357
+ return nullptr;
358
+ return new Extension(plugin);
359
}
360
361
string Repository::GetFullPath() const
0 commit comments