fix #129 - CE projects, typo in an item of library alias editor leads to AV

This commit is contained in:
Basile Burg 2017-03-29 17:45:30 +02:00
parent f1a05d7dd7
commit 1211e282ce
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 4 additions and 2 deletions

View File

@ -193,7 +193,8 @@ end;
function TLibraryItem.getModule(const value: string): TModuleInfo;
begin
fModulesByName.GetValue(value, result);
if not fModulesByName.GetValue(value, result) then
result := nil;
end;
function TLibraryItem.addModuleInfo: TModuleInfo;
@ -426,7 +427,8 @@ end;
function TLibraryManager.getLibraryByAlias(const value: string): TLibraryItem;
begin
fItemsByAlias.GetValue(value, result);
if not fItemsByAlias.GetValue(value, result) then
result := nil;
end;
function TLibraryManager.getLibraryByImport(const value: string): TLibraryItem;