From: Luca Bruno Date: Tue, 4 May 2010 19:52:07 +0000 (+0200) Subject: doclets/gtkdoclet: Fix unconditionated .strip() usage X-Git-Tag: 0.37.1~3^2~475 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2e22f0ee281be416b8d925f3a48d47a249f78a5;p=thirdparty%2Fvala.git doclets/gtkdoclet: Fix unconditionated .strip() usage --- diff --git a/src/doclets/gtkdoc/commentconverter.vala b/src/doclets/gtkdoc/commentconverter.vala index 387a2d76e..a2cf0e9fc 100644 --- a/src/doclets/gtkdoc/commentconverter.vala +++ b/src/doclets/gtkdoc/commentconverter.vala @@ -38,7 +38,9 @@ public class Gtkdoc.CommentConverter : ContentVisitor { public void convert (Comment comment) { comment.accept (this); - brief_comment = brief_comment.strip (); + if (brief_comment != null) { + brief_comment = brief_comment.strip (); + } long_comment = current_builder.str.strip (); if (long_comment == "") { long_comment = null;