mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
added missing null check libresapi ApiPluginHandler
This commit is contained in:
parent
b1b75a35a1
commit
adfa94d237
@ -8,6 +8,9 @@ ApiPluginHandler::ApiPluginHandler(StateTokenServer* statetokenserver, const RsP
|
||||
for(int i = 0; i < ifaces.mPluginHandler->nbPlugins(); i++)
|
||||
{
|
||||
RsPlugin* plugin = ifaces.mPluginHandler->plugin(i);
|
||||
// if plugin is not loaded, pointer is null
|
||||
if(plugin == 0)
|
||||
continue;
|
||||
std::string entrypoint;
|
||||
ResourceRouter* child = plugin->new_resource_api_handler(ifaces, statetokenserver, entrypoint);
|
||||
if(child != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user