Change change = new Change(createdBy);\r
\r
String title = titleModel.getObject();\r
- if (!ticket.title.equals(title)) {\r
+ if (!StringUtils.isEmpty(title) && !ticket.title.equals(title)) {\r
// title change\r
change.setField(Field.title, title);\r
}\r
\r
String description = descriptionEditor.getText();\r
- if (!ticket.body.equals(description)) {\r
+ if ((StringUtils.isEmpty(ticket.body) && !StringUtils.isEmpty(description))\r
+ || (!StringUtils.isEmpty(ticket.body) && !ticket.body.equals(description))) {\r
// description change\r
change.setField(Field.body, description);\r
}\r