[vala/staging] libvaladoc: Skip empty Version.replacement attribute to avoid critical



commit e02ff395fc5dfbd505b0a38e10cf9397e783e58e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Jan 2 13:32:04 2019 +0100

    libvaladoc: Skip empty Version.replacement attribute to avoid critical

 libvaladoc/html/basicdoclet.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libvaladoc/html/basicdoclet.vala b/libvaladoc/html/basicdoclet.vala
index acd94cf5f..46578c28f 100644
--- a/libvaladoc/html/basicdoclet.vala
+++ b/libvaladoc/html/basicdoclet.vala
@@ -497,7 +497,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
 
                        writer.text (".");
 
-                       if (replacement != null) {
+                       if (replacement != null && replacement.length > 2) {
                                Api.Node? replacement_node = tree.search_symbol_str (pos,
                                        replacement.substring (1, replacement.length - 2));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]