diff dwt/widgets/Group.d @ 241:b4846fd3437a

work on allow null strings and arrays
author Frank Benoit <benoit@tionex.de>
date Mon, 23 Jun 2008 01:45:58 +0200
parents 36f5cb12e1a2
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/widgets/Group.d	Sat Jun 21 02:24:49 2008 +0200
+++ b/dwt/widgets/Group.d	Mon Jun 23 01:45:58 2008 +0200
@@ -345,9 +345,6 @@
  * </p>
  * @param string the new text
  *
- * @exception IllegalArgumentException <ul>
- *    <li>ERROR_NULL_ARGUMENT - if the text is null</li>
- * </ul>
  * @exception DWTException <ul>
  *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -355,7 +352,8 @@
  */
 public void setText (String string) {
     checkWidget ();
-    if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
+    // DWT extension: allow null string
+    //if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
     text = string;
     /*
     * Bug in Windows.  When a group control is right-to-left and