Skip to content

Commit

Permalink
[diagnostics] rel.location can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 8, 2025
1 parent 2f03d9d commit 2af526d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haxeLanguageServer/features/haxe/DiagnosticsFeature.hx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class DiagnosticsFeature {
message: hxDiag.kind.getMessage(doc, hxDiag.args, range),
data: {kind: hxDiag.kind},
relatedInformation: hxDiag.relatedInformation?.map(rel -> {
location: {
location: rel.location == null ? null : {
uri: rel.location.file.toUri(),
range: rel.location.range,
},
Expand Down

0 comments on commit 2af526d

Please sign in to comment.