From 390ec7777e63980d652b55215b744e766e3744ef Mon Sep 17 00:00:00 2001 From: Basile Burg <basile.b@gmx.com> Date: Thu, 5 Jan 2023 16:12:48 +0100 Subject: [PATCH] fix, possible AV when trying to quit and if the FSP just got closed while a group also present --- src/u_main.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/u_main.pas b/src/u_main.pas index 4dd3d271..d811f47c 100644 --- a/src/u_main.pas +++ b/src/u_main.pas @@ -1082,7 +1082,7 @@ begin // group, group item has the focus grp := getProjectGroup(); fProjectGroup := grp.groupFilename(); - if fProjectGroup.isNotEmpty() and MainForm.fProj.inGroup() then + if fProjectGroup.isNotEmpty() and assigned(MainForm.fProj) and MainForm.fProj.inGroup() then begin fProjectIndex := grp.getProjectIndex(); fProjectConfigIndex := MainForm.fProj.getActiveConfigurationIndex();