summaryrefslogtreecommitdiff
path: root/libvaladoc
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-08-27 10:02:19 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2020-08-27 10:02:19 +0200
commit721aca1abd3a8c27995874bfccd10e59842969ce (patch)
tree989613832cc628471e999a2b305446ca99982df7 /libvaladoc
parent21941c94ee99511ae82169d2cf54c20ec86be986 (diff)
downloadvala-721aca1abd3a8c27995874bfccd10e59842969ce.tar.gz
libvaladoc/gtkdoc-importer: Correctly retrieve "url" from "ulink" elements
This caused criticals like: g_uri_parse_scheme: assertion 'uri != NULL' failed
Diffstat (limited to 'libvaladoc')
-rw-r--r--libvaladoc/documentation/gtkdoccommentparser.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/libvaladoc/documentation/gtkdoccommentparser.vala b/libvaladoc/documentation/gtkdoccommentparser.vala
index 20535b764..c1b1d0ea8 100644
--- a/libvaladoc/documentation/gtkdoccommentparser.vala
+++ b/libvaladoc/documentation/gtkdoccommentparser.vala
@@ -358,7 +358,12 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator {
}
StringBuilder builder = new StringBuilder ();
- string url = current.attributes.get ("linkend");
+ string url;
+ if (is_internal) {
+ url = current.attributes.get ("linkend");
+ } else {
+ url = current.attributes.get ("url");
+ }
next ();
// TODO: check xml