mirror of https://gitlab.com/basile.b/dexed.git
fix #129 - CE projects, typo in an item of library alias editor leads to AV
This commit is contained in:
parent
f1a05d7dd7
commit
1211e282ce
|
@ -193,7 +193,8 @@ end;
|
||||||
|
|
||||||
function TLibraryItem.getModule(const value: string): TModuleInfo;
|
function TLibraryItem.getModule(const value: string): TModuleInfo;
|
||||||
begin
|
begin
|
||||||
fModulesByName.GetValue(value, result);
|
if not fModulesByName.GetValue(value, result) then
|
||||||
|
result := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TLibraryItem.addModuleInfo: TModuleInfo;
|
function TLibraryItem.addModuleInfo: TModuleInfo;
|
||||||
|
@ -426,7 +427,8 @@ end;
|
||||||
|
|
||||||
function TLibraryManager.getLibraryByAlias(const value: string): TLibraryItem;
|
function TLibraryManager.getLibraryByAlias(const value: string): TLibraryItem;
|
||||||
begin
|
begin
|
||||||
fItemsByAlias.GetValue(value, result);
|
if not fItemsByAlias.GetValue(value, result) then
|
||||||
|
result := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TLibraryManager.getLibraryByImport(const value: string): TLibraryItem;
|
function TLibraryManager.getLibraryByImport(const value: string): TLibraryItem;
|
||||||
|
|
Loading…
Reference in New Issue