diff --git a/src/groupchat_control.py b/src/groupchat_control.py
index 19755d35a..962c7a9c3 100644
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -541,8 +541,11 @@ class GroupchatControl(ChatControlBase):
self.name_label.set_ellipsize(pango.ELLIPSIZE_END)
subject = gtkgui_helpers.reduce_chars_newlines(subject, 0, 2)
subject = gtkgui_helpers.escape_for_pango_markup(subject)
- self.name_label.set_markup(
- '%s\n%s' % (self.room_jid, subject))
+ text = '%s' % \
+ self.room_jid
+ if subject:
+ text += '\n%s' % subject
+ self.name_label.set_markup(text)
event_box = self.name_label.get_parent()
if subject == '':
self.subject = _('This room has no subject')