From 1e97f8eabf1e1bc10a0bb8211e984d4a804543b9 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 6 Apr 2023 12:01:00 +0200 Subject: valadoc: Check correct value for null when looking for return comment --- valadoc/girwriter.vala | 6 +++--- 1 file 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; } -- cgit v1.2.1