mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix crash
This commit is contained in:
parent
9b4b25b9b0
commit
047e1b2cdc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue