Skip to content

Commit f5b18dd

Browse files
committed
Fixed AV when OpenAPI document does not contain tags
1 parent b57b808 commit f5b18dd

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Source/OpenApiGen.V3.Analyzer.pas

+6-3
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,12 @@ procedure TOpenApiAnalyzer.DoSolveServiceOperation(var ServiceName, ServiceDescr
245245
if Operation.Tags.Count > 0 then
246246
begin
247247
ServiceName := Operation.Tags[0];
248-
Tag := FDocument.Tags.Find(ServiceName);
249-
if Tag <> nil then
250-
ServiceDescription := Tag.Description;
248+
if FDocument.Tags <> nil then
249+
begin
250+
Tag := FDocument.Tags.Find(ServiceName);
251+
if Tag <> nil then
252+
ServiceDescription := Tag.Description;
253+
end;
251254
end
252255
else
253256
ServiceName := '';

Source/version.rc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VS_VERSION_INFO VERSIONINFO
2-
FILEVERSION 1,1,0,0
3-
PRODUCTVERSION 1,1,0,0
2+
FILEVERSION 1,1,1,0
3+
PRODUCTVERSION 1,1,1,0
44
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
55
#ifdef DEBUG
66
FILEFLAGS VS_FF_DEBUG
@@ -15,10 +15,10 @@ BEGIN
1515
BLOCK "040904b0"
1616
BEGIN
1717
VALUE "FileDescription", "OpenApi Delphi Generator\0"
18-
VALUE "FileVersion", "1.1.0.0\0"
18+
VALUE "FileVersion", "1.1.1.0\0"
1919
VALUE "LegalCopyright", "� 2022 Landgraf.dev All Rights Reserved\0"
2020
VALUE "ProductName", "OpenApi Delphi Generator\0"
21-
VALUE "ProductVersion", "1.1.0.0\0"
21+
VALUE "ProductVersion", "1.1.1.0\0"
2222
END
2323
END
2424
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)