Skip to content

Commit

Permalink
[#87] Reworked debug output of compiler messages - fixed NPE for sour…
Browse files Browse the repository at this point in the history
…ce code unrelated compiler messages
  • Loading branch information
Tobias Stamann committed Apr 4, 2024
1 parent 100563d commit b6e795c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static String getDebugMessages(CompilationResult compilationResult, Diag

private static String getDiagnosticString(Diagnostic<? extends JavaFileObject> diagnostics) {
return "[ " + diagnostics.getKind() + ", "
+ "s:'" + diagnostics.getSource().getName() + "', "
+ "s:" + ( diagnostics.getSource() != null ? "'" + diagnostics.getSource().getName() + "'" : "<NOT_RELATED_WITH_SOURCE_FILE>") + ", "
+ "l:" + diagnostics.getLineNumber() + ", "
+ "c:" + diagnostics.getColumnNumber()+ " ] "
+ ":= '" + diagnostics.getMessage(null) + "'";
Expand Down

0 comments on commit b6e795c

Please sign in to comment.