summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-04-06 12:01:00 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-04-06 16:11:37 +0200
commit1e97f8eabf1e1bc10a0bb8211e984d4a804543b9 (patch)
treea2e7408afcd1f84c68ead1feb8e12f6c46bb9496
parentc4d74664f4f1805994670b3284695a0348bd5826 (diff)
downloadvala-1e97f8eabf1e1bc10a0bb8211e984d4a804543b9.tar.gz
valadoc: Check correct value for null when looking for return comment
-rw-r--r--valadoc/girwriter.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/valadoc/girwriter.vala b/valadoc/girwriter.vala
index 84131eb86..af7789247 100644
--- a/valadoc/girwriter.vala
+++ b/valadoc/girwriter.vala
@@ -117,7 +117,7 @@ public class Valadoc.GirWriter : Vala.GIRWriter {
protected override string? get_delegate_return_comment (Vala.Delegate vcb) {
Delegate cb = resolver.resolve (vcb) as Delegate;
- if (cb.documentation == null) {
+ if (cb == null) {
return null;
}
@@ -136,7 +136,7 @@ public class Valadoc.GirWriter : Vala.GIRWriter {
protected override string? get_signal_return_comment (Vala.Signal vsig) {
Api.Signal sig = resolver.resolve (vsig) as Api.Signal;
- if (sig.documentation == null) {
+ if (sig == null) {
return null;
}
@@ -155,7 +155,7 @@ public class Valadoc.GirWriter : Vala.GIRWriter {
protected override string? get_method_return_comment (Vala.Method vm) {
Method m = resolver.resolve (vm) as Method;
- if (m.documentation == null) {
+ if (m == null) {
return null;
}