]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/gtkdoclet: FormalParameter: Fix null ptr warning triggered by generic types
authorFlorian Brosch <flo.brosch@gmail.com>
Sat, 30 Jul 2011 12:24:54 +0000 (14:24 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Sat, 30 Jul 2011 12:24:54 +0000 (14:24 +0200)
src/doclets/gtkdoc/generator.vala

index ed90599293f2ad56ebc4751a6011933d58251c04..b1a10281884bc4b7d783a881b1a35ead697f8046 100755 (executable)
@@ -682,7 +682,7 @@ It is important that your <link linkend=\"GValue\"><type>GValue</type></link> ho
                                null, get_parameter_pos (current_method_or_delegate, param_name)+0.1);
                }
 
-               if (!param.ellipsis && get_cname (param.parameter_type.data_type) == "GError") {
+               if (!param.ellipsis && param.parameter_type.data_type != null && get_cname (param.parameter_type.data_type) == "GError") {
                        annotations += "not-error";
                }