[gnome-shell/wip/fmuellner/notification-redux: 108/128] calendar: Message body is optional, so take this into account



commit 7a8f054eb2589b061f96e94b25eab52d991f47c3
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 16 20:19:04 2015 +0100

    calendar: Message body is optional, so take this into account

 js/ui/calendar.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 6bc0feb..6a640a8 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1054,7 +1054,7 @@ const Message = new Lang.Class({
         this._closeButton = new St.Button({ child: closeIcon, visible: false });
         titleBox.add_actor(this._closeButton);
 
-        this.bodyLabel = new URLHighlighter(body, false, this._useBodyMarkup);
+        this.bodyLabel = new URLHighlighter(body || '', false, this._useBodyMarkup);
         this.bodyLabel.actor.add_style_class_name('message-body');
         contentBox.add_actor(this.bodyLabel.actor);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]