From: Florian Brosch Date: Sat, 30 Jul 2011 12:24:54 +0000 (+0200) Subject: doclets/gtkdoclet: FormalParameter: Fix null ptr warning triggered by generic types X-Git-Tag: 0.37.1~3^2~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e8a9a8f923251aa53f6ffdfe3a11fcec1e243e7;p=thirdparty%2Fvala.git doclets/gtkdoclet: FormalParameter: Fix null ptr warning triggered by generic types --- diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala index ed9059929..b1a102818 100755 --- a/src/doclets/gtkdoc/generator.vala +++ b/src/doclets/gtkdoc/generator.vala @@ -682,7 +682,7 @@ It is important that your GValue 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"; }