diff --git a/src/haxeLanguageServer/features/haxe/DiagnosticsFeature.hx b/src/haxeLanguageServer/features/haxe/DiagnosticsFeature.hx index 20ed52ff..3a510804 100644 --- a/src/haxeLanguageServer/features/haxe/DiagnosticsFeature.hx +++ b/src/haxeLanguageServer/features/haxe/DiagnosticsFeature.hx @@ -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, },