[valadoc] doclets/gtkdoclet: Fix unconditionated .strip() usage



commit a2e22f0ee281be416b8d925f3a48d47a249f78a5
Author: Luca Bruno <lethalman88 gmail com>
Date:   Tue May 4 21:52:07 2010 +0200

    doclets/gtkdoclet: Fix unconditionated .strip() usage

 src/doclets/gtkdoc/commentconverter.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/doclets/gtkdoc/commentconverter.vala b/src/doclets/gtkdoc/commentconverter.vala
index 387a2d7..a2cf0e9 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]