From fafeb68da33d531bcf83ecfc1399b4770ada6e4b Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 17 Sep 2014 11:37:46 -0400 Subject: [PATCH] Ensure TicketModel comment text is not null in hasComment() test --- src/main/java/com/gitblit/models/TicketModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5