Skip to content

Conversation

@fm-117
Copy link
Contributor

@fm-117 fm-117 commented Aug 18, 2025

Fixes #2306

The NullReferenceException regularly observed in the AddError method when checking REDEFINES may be caused by:

  • either the NameLiteral being null
  • or the Token of the NameLiteral being null.

This PR aims at fixing unsafe uses of SymbolInformation.NameLiteral.

@fm-117 fm-117 requested a review from efr15 August 21, 2025 07:55
@fm-117 fm-117 merged commit aba599c into develop Aug 21, 2025
8 checks passed
@fm-117 fm-117 deleted the 2306-nullpointerexception-in-diagnosticutilsadderrornode-node-string-message-symbolreference-symbol-messagecode-code branch August 21, 2025 11:39
@fm-117 fm-117 mentioned this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullPointerException in DiagnosticUtils.AddError(Node node, String message, SymbolReference symbol, MessageCode code)

2 participants