diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-17 11:37:46 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-17 11:37:46 -0400 |
commit | fafeb68da33d531bcf83ecfc1399b4770ada6e4b (patch) | |
tree | c53fa571221f2538375e5c94fa3fbb37f0754d77 | |
parent | 1a44e0afdbcf3b45347c248b0b1decd5853bf69c (diff) | |
download | gitblit-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.java | 2 |
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) { |