fix crash

This commit is contained in:
lsv 2026-03-27 10:52:50 +05:00
parent 9b4b25b9b0
commit 047e1b2cdc

View file

@ -32,7 +32,7 @@ bool reportAwrFactory::CheckEnable(pgObject* obj)
{
if (obj)
{
if ((obj->GetMetaType() == PGM_DATABASE ) && !obj->IsCollection() && obj->GetConnection()->HasFeature(FEATURE_PGPRO_PWR))
if ((obj->GetMetaType() == PGM_DATABASE ) && !obj->IsCollection() && obj->GetConnection() && obj->GetConnection()->HasFeature(FEATURE_PGPRO_PWR))
return true;
else
return false;