diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 19d154ad2..cb63d6aae 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -1044,7 +1044,8 @@ const Message = new Lang.Class({ setBody: function(text) { this._bodyText = text; - this.bodyLabel.setMarkup(text.replace(/\n/g, ' '), this._useBodyMarkup); + this.bodyLabel.setMarkup(text ? text.replace(/\n/g, ' ') : '', + this._useBodyMarkup); }, setUseBodyMarkup: function(enable) {