From 0280aea023c64c10fb90cbe238d4709905f73226 Mon Sep 17 00:00:00 2001 From: michl Date: Thu, 1 Jun 2017 18:20:55 +0000 Subject: [PATCH] IDE: SpartaDockedFormEditor: Fixed AV when component from component palette is selected and no form unit is in the editor. git-svn-id: trunk@55145 - --- ide/main.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/ide/main.pp b/ide/main.pp index 9040217b0b..e4e8395e37 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -8512,6 +8512,7 @@ begin {$IFDEF VerboseIDEDisplayState} debugln(['TMainIDE.DoShowDesignerFormOfCurrentSrc ']); {$ENDIF} + AForm := nil; GetUnit(TSourceEditor(AEditor), ActiveUnitInfo); if (ActiveUnitInfo = nil) then exit;