From: James Moger Date: Wed, 17 Sep 2014 15:37:46 +0000 (-0400) Subject: Ensure TicketModel comment text is not null in hasComment() test X-Git-Tag: v1.6.1~32^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Ftickets%2F79%2F179%2F1;p=gitblit.git Ensure TicketModel comment text is not null in hasComment() test --- diff --git a/src/main/java/com/gitblit/models/TicketModel.java b/src/main/java/com/gitblit/models/TicketModel.java index f843e993..091a669f 100644 --- a/src/main/java/com/gitblit/models/TicketModel.java +++ b/src/main/java/com/gitblit/models/TicketModel.java @@ -637,7 +637,7 @@ public class TicketModel implements Serializable, Comparable { } public boolean hasComment() { - return comment != null && !comment.isDeleted(); + return comment != null && !comment.isDeleted() && comment.text != null; } public Comment comment(String text) {