mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Merge pull request #8102 from aafemt/issue8101
Fix for #8101 : Firebird crashes if a plugin factory returns nullptr and no error in status
This commit is contained in:
commit
dd2d281dc7
@ -605,7 +605,7 @@ namespace
|
||||
FbLocalStatus ls;
|
||||
IPluginBase* plugin = module->getPlugin(regPlugin).factory->createPlugin(&ls, par);
|
||||
|
||||
if (!(ls->getState() & Firebird::IStatus::STATE_ERRORS))
|
||||
if (plugin && !(ls->getState() & Firebird::IStatus::STATE_ERRORS))
|
||||
{
|
||||
plugin->setOwner(par);
|
||||
return plugin;
|
||||
|
Loading…
Reference in New Issue
Block a user