]> source.dussan.org Git - gitblit.git/commitdiff
Ensure TicketModel comment text is not null in hasComment() test 79/179/1
authorJames Moger <james.moger@gitblit.com>
Wed, 17 Sep 2014 15:37:46 +0000 (11:37 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 17 Sep 2014 15:37:46 +0000 (11:37 -0400)
src/main/java/com/gitblit/models/TicketModel.java

index f843e993badbed6ccbc3d187c0e3f951aae7c133..091a669f44d53be220eef526814a39fcff85c3ca 100644 (file)
@@ -637,7 +637,7 @@ public class TicketModel implements Serializable, Comparable<TicketModel> {
                }
 
                public boolean hasComment() {
-                       return comment != null && !comment.isDeleted();
+                       return comment != null && !comment.isDeleted() && comment.text != null;
                }
 
                public Comment comment(String text) {