do not display leave msg if no nick is found
diff --git a/chatdialog.cpp b/chatdialog.cpp
index d8010a0..558f40a 100644
--- a/chatdialog.cpp
+++ b/chatdialog.cpp
@@ -114,9 +114,13 @@
   QStringListIterator it(staleUserList);
   while(it.hasNext())
   {
+    std::string nick = it.next().toStdString();
+    if (nick.empty())
+      continue;
+
     SyncDemo::ChatMessage msg;
     formControlMessage(msg, SyncDemo::ChatMessage::LEAVE);
-    msg.set_from(it.next().toStdString());
+    msg.set_from(nick);
     appendMessage(msg);
   }
 }