8
0
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:
Vlad Khorsun 2024-05-14 20:19:02 +03:00 committed by GitHub
commit dd2d281dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;