beagle r4390 - trunk/beagle/ImLogViewer
- From: llipka svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4390 - trunk/beagle/ImLogViewer
- Date: Tue, 15 Jan 2008 00:04:03 +0000 (GMT)
Author: llipka
Date: Tue Jan 15 00:04:02 2008
New Revision: 4390
URL: http://svn.gnome.org/viewvc/beagle?rev=4390&view=rev
Log:
Fix a null ref exception when no buddy alias is set.
Modified:
trunk/beagle/ImLogViewer/ImLogWindow.cs
Modified: trunk/beagle/ImLogViewer/ImLogWindow.cs
==============================================================================
--- trunk/beagle/ImLogViewer/ImLogWindow.cs (original)
+++ trunk/beagle/ImLogViewer/ImLogWindow.cs Tue Jan 15 00:04:02 2008
@@ -87,7 +87,7 @@
private void SetWindowTitle (string speaker)
{
- if (speaker == null || speaker.Length == 0)
+ if (String.IsNullOrEmpty (speaker))
return;
// Find the buddy
@@ -121,7 +121,7 @@
} else {
string nick = speaker;
- if (buddy != null && buddy.Alias.Length > 0)
+ if (buddy != null && ! String.IsNullOrEmpty (buddy.Alias))
nick = buddy.Alias;
imviewer.Title = String.Format (Catalog.GetString ("Conversations with {0}"), nick);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]