From: Rico Tzschichholz Date: Thu, 6 Apr 2023 10:01:00 +0000 (+0200) Subject: valadoc: Check correct value for null when looking for return comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e97f8eabf1e1bc10a0bb8211e984d4a804543b9;p=thirdparty%2Fvala.git valadoc: Check correct value for null when looking for return comment --- 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; }