milis/talimatname/genel/pgadmin3/pgadmin3-fix-segfault.patch

12 lines
421 B
Diff
Raw Normal View History

2017-06-11 12:28:31 +02:00
--- a/pgadmin/frm/plugins.cpp
+++ b/pgadmin/frm/plugins.cpp
@@ -380,7 +380,7 @@ bool pluginUtilityFactory::CheckEnable(p
{
// 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.