[vala/staging] libvaladoc/girimporter: Fallback to "name" for callback
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] libvaladoc/girimporter: Fallback to "name" for callback
- Date: Thu, 27 Aug 2020 08:03:47 +0000 (UTC)
commit 21941c94ee99511ae82169d2cf54c20ec86be986
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Aug 27 10:02:19 2020 +0200
libvaladoc/girimporter: Fallback to "name" for callback
This caused criticals like:
valadoc_importer_gir_documentation_importer_attach_comment: assertion 'cname != NULL' failed
libvaladoc/importer/girdocumentationimporter.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/libvaladoc/importer/girdocumentationimporter.vala
b/libvaladoc/importer/girdocumentationimporter.vala
index b528a178d..b94f64a96 100644
--- a/libvaladoc/importer/girdocumentationimporter.vala
+++ b/libvaladoc/importer/girdocumentationimporter.vala
@@ -655,6 +655,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
case "callback":
c_identifier = reader.get_attribute ("c:type");
+ if (c_identifier == null) {
+ c_identifier = reader.get_attribute ("name");
+ }
break;
case "virtual-method":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]