]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Skip empty Version.replacement attribute to avoid critical
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 2 Jan 2019 12:32:04 +0000 (13:32 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 2 Jan 2019 12:32:04 +0000 (13:32 +0100)
libvaladoc/html/basicdoclet.vala

index acd94cf5f87afcce92030ad14d3033f45d8baaca..46578c28fbd95a7a4fae15c3d25debe880ae068c 100644 (file)
@@ -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));