summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-09-17 11:37:46 -0400
committerJames Moger <james.moger@gitblit.com>2014-09-17 11:37:46 -0400
commitfafeb68da33d531bcf83ecfc1399b4770ada6e4b (patch)
treec53fa571221f2538375e5c94fa3fbb37f0754d77
parent1a44e0afdbcf3b45347c248b0b1decd5853bf69c (diff)
downloadgitblit-fafeb68da33d531bcf83ecfc1399b4770ada6e4b.tar.gz
gitblit-fafeb68da33d531bcf83ecfc1399b4770ada6e4b.zip
Ensure TicketModel comment text is not null in hasComment() test
-rw-r--r--src/main/java/com/gitblit/models/TicketModel.java2
1 files changed, 1 insertions, 1 deletions
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<TicketModel> {
}
public boolean hasComment() {
- return comment != null && !comment.isDeleted();
+ return comment != null && !comment.isDeleted() && comment.text != null;
}
public Comment comment(String text) {