mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix crush app.
Устраняет аварийное завершение приложения при проверки плагинов для не подлюченной БД.
This commit is contained in:
parent
c5bf4410a9
commit
782cccbc15
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue