]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valadoc: Check correct value for null when looking for return comment
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 6 Apr 2023 10:01:00 +0000 (12:01 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 6 Apr 2023 14:11:37 +0000 (16:11 +0200)
valadoc/girwriter.vala

index 84131eb86f9af68d20c7f13754ff78ade3e21f1f..af7789247f59e90ce93cc04fd3222f7e4a1834ee 100644 (file)
@@ -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;
                }