From adb1449863247cd1401a74117f0d42e926e032a3 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 11 Feb 2019 05:06:36 +0100 Subject: [PATCH] fix possible av when project doesn't load json to sdl conversion failure can cause this --- src/u_libman.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/u_libman.pas b/src/u_libman.pas index 1d344c99..14b5463e 100644 --- a/src/u_libman.pas +++ b/src/u_libman.pas @@ -252,6 +252,8 @@ begin if hasValidLibProject then begin prj := loadProject(fLibProject, true); + if not assigned(prj) then + exit; str := TStringList.Create; try cnt := prj.sourcesCount-1;