From 6b9dbf18ee6f51cd610230ccee8b280382f39ba5 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 9 Jun 2010 22:24:43 +0000 Subject: [PATCH] Avoid an AV in cases when main tab is "Data" on startup. --- source/main.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main.pas b/source/main.pas index 862c2fe2..fa52fc9f 100644 --- a/source/main.pas +++ b/source/main.pas @@ -2407,9 +2407,9 @@ var begin // Load BLOB contents into preview area Grid := ActiveGrid; - if not Assigned(Grid) then - Exit; Results := GridResult(Grid); + if not Assigned(Results) then + Exit; Screen.Cursor := crHourGlass; try ShowStatusMsg('Loading contents into image viewer ...');