Skip to content

Commit

Permalink
Merge branch 'topic/vadim/crash' into 'master'
Browse files Browse the repository at this point in the history
Check for null value.

Closes #87

See merge request eng/ide/gnatdoc!122
  • Loading branch information
AnthonyLeonardoGracio committed Sep 19, 2024
2 parents ec2fa87 + 6506421 commit edf2489
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/gnatdoc-comments-extractor.adb
Original file line number Diff line number Diff line change
Expand Up @@ -2513,6 +2513,7 @@ package body GNATdoc.Comments.Extractor is
Raw_Section := Trailing_Section;

elsif Options.Fallback
and Leading_Section /= null
and not Leading_Section.Text.Is_Empty
then
Raw_Section := Leading_Section;
Expand Down

0 comments on commit edf2489

Please sign in to comment.