Check for comments before tokenizing.

This commit is contained in:
cnaude 2016-04-17 23:30:50 -07:00
parent b2eb1eb887
commit d5198d3129
1 changed files with 4 additions and 1 deletions

View File

@ -647,7 +647,10 @@ public class ChatTokenizer {
String displayModName = "";
String name = ticket.getName();
String world = ticket.getWorld();
String modComment = ticket.getComments().last().getComment();
String modComment = "";
if (!ticket.getComments().isEmpty()) {
modComment = ticket.getComments().last().getComment();
}
int id = ticket.getId();
if (message == null) {
message = "";