]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/gtkdoclet: Fix unconditionated .strip() usage
authorLuca Bruno <lethalman88@gmail.com>
Tue, 4 May 2010 19:52:07 +0000 (21:52 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 4 May 2010 19:52:07 +0000 (21:52 +0200)
src/doclets/gtkdoc/commentconverter.vala

index 387a2d76e98c9153191c7401fb79fdb13d1bd84a..a2cf0e9fceb33b0706410268234ce401d24105c6 100644 (file)
@@ -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;