From 1fc5894204dd39b2d275fdbcfcaecad89a97ff57 Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Mon, 8 Jun 2020 12:36:05 +0200 Subject: [PATCH] fix: (recent) error trying to load a VFS with an empty recent-files list --- utillib.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utillib.pas b/utillib.pas index adf0e03..7808566 100644 --- a/utillib.pas +++ b/utillib.pas @@ -746,6 +746,8 @@ function removeString(s:string; var a:TStringDynArray; onlyOnce:boolean=TRUE; ci var i, lessen:integer; begin result:=FALSE; +if a = NIL then + exit; lessen:=0; try for i:=length(a)-1 to 0 do