You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2024/04/02 08:16:56 UTC

(maven-doxia) branch master updated: [DOXIA-723] Improve logging for null references

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git


The following commit(s) were added to refs/heads/master by this push:
     new 3aea5e4e [DOXIA-723] Improve logging for null references
3aea5e4e is described below

commit 3aea5e4e20315f1a6a88edbacd2ee30e183c875b
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Apr 2 10:16:50 2024 +0200

    [DOXIA-723] Improve logging for null references
---
 .../src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java b/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java
index fe75a06e..c98df474 100644
--- a/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java
+++ b/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/AbstractSink.java
@@ -454,6 +454,8 @@ public abstract class AbstractSink implements Sink, Markup {
 
         if (locator.getReference() != null) {
             buffer.append(locator.getReference());
+        } else {
+            buffer.append("Unknown source");
         }
         if (locator.getLineNumber() > 0) {
             buffer.append(", line ").append(locator.getLineNumber());