-- a/pgadmin/frm/plugins.cpp
++ b/pgadmin/frm/plugins.cpp
{
// 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.