From 438405ecae70b3ae8eb2e282ab4d18db8553b3e4 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 6 Apr 2011 07:24:20 -0700 Subject: [PATCH] [into][osx] Don't crash when the user doesn't have a unix username set --- SparkleShare/Mac/SparkleIntro.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleShare/Mac/SparkleIntro.cs b/SparkleShare/Mac/SparkleIntro.cs index 1a4a02cb..d2b8969d 100644 --- a/SparkleShare/Mac/SparkleIntro.cs +++ b/SparkleShare/Mac/SparkleIntro.cs @@ -76,6 +76,9 @@ namespace SparkleShare { UserInfoForm.IntercellSpacing = new SizeF (4, 4); string full_name = new UnixUserInfo (UnixEnvironment.UserName).RealName; + if (string.IsNullOrEmpty (full_name)) + full_name = ""; + UserInfoForm.Cells [0].StringValue = full_name.TrimEnd (",".ToCharArray());; UserInfoForm.Cells [1].StringValue = SparkleShare.Controller.UserEmail;