diff dwt/widgets/Item.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 ab60f3309436
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/widgets/Item.d	Sat Jun 21 02:24:49 2008 +0200
+++ b/dwt/widgets/Item.d	Mon Jun 23 01:45:58 2008 +0200
@@ -171,9 +171,6 @@
  *
  * @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>
@@ -181,7 +178,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;
 }