[intro] Don't crash when the user doesn't have a unix username set

This commit is contained in:
Hylke Bons 2011-04-06 07:23:08 -07:00
parent e4720628cc
commit f9fcfac9de

View file

@ -81,6 +81,9 @@ namespace SparkleShare {
};
string full_name = new UnixUserInfo (UnixEnvironment.UserName).RealName;
if (string.IsNullOrEmpty (full_name))
full_name = "";
Label name_label = new Label ("<b>" + _("Full Name:") + "</b>") {
UseMarkup = true,
Xalign = 0