fix crush app.

Устраняет аварийное завершение приложения при проверки плагинов для не подлюченной БД.
This commit is contained in:
lsv 2026-02-18 16:08:00 +05:00
parent c5bf4410a9
commit 782cccbc15

View file

@ -391,7 +391,7 @@ bool pluginUtilityFactory::CheckEnable(pgObject *obj)
{
// If we need a specific server type, we can't enable unless
// we have a connection.
if (!obj || !(obj->GetConnection()->GetStatus() == PGCONN_OK))
if (!obj || !(obj->GetConnection()) || (!(obj->GetConnection()->GetStatus() == PGCONN_OK)))
return false;
// Get the server type.