aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/pgadmin3/patches/pgadmin3-fix-segfault.patch
blob: a42d1992b6588a8adf13c261ab36675a73f65cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
https://bugs.archlinux.org/task/52683

--- 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.