From 782cccbc15aa9abd13a2dbe187b653c7b4c43233 Mon Sep 17 00:00:00 2001 From: lsv Date: Wed, 18 Feb 2026 16:08:00 +0500 Subject: [PATCH] fix crush app. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Устраняет аварийное завершение приложения при проверки плагинов для не подлюченной БД. --- frm/plugins.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frm/plugins.cpp b/frm/plugins.cpp index 71831d7..ec815c4 100644 --- a/frm/plugins.cpp +++ b/frm/plugins.cpp @@ -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.