All pastes #262332 Raw Edit

Unnamed

public text v1 · immutable
#262332 ·published 2006-11-30 12:30 UTC
rendered paste body
Index: XplatUIX11.cs
===================================================================
--- XplatUIX11.cs	(Revision 68682)
+++ XplatUIX11.cs	(Arbeitskopie)
@@ -5046,6 +5046,9 @@
 			hwnd = Hwnd.ObjectFromHandle(handle);
 
 			lock (XlibLock) {
+				if (text == null)
+					text = String.Empty;
+				
 				XChangeProperty(DisplayHandle, hwnd.whole_window, _NET_WM_NAME, UNICODETEXT, 8,
 						PropertyMode.Replace, text, Encoding.UTF8.GetByteCount (text));