diff dwt/custom/TableTree.d @ 244:a59d51c12b42

work on allow null strings and arrays
author Frank Benoit <benoit@tionex.de>
date Sat, 28 Jun 2008 20:27:21 +0200
parents ab60f3309436
children 349b8c12e243
line wrap: on
line diff
--- a/dwt/custom/TableTree.d	Sat Jun 28 20:18:36 2008 +0200
+++ b/dwt/custom/TableTree.d	Sat Jun 28 20:27:21 2008 +0200
@@ -765,7 +765,6 @@
  * @param items the array of items
  *
  * @exception IllegalArgumentException <ul>
- *    <li>ERROR_NULL_ARGUMENT - if the array of items is null</li>
  *    <li>ERROR_INVALID_ARGUMENT - if one of the item has been disposed</li>
  * </ul>
  * @exception DWTException <ul>
@@ -777,7 +776,8 @@
  */
 public void setSelection (TableTreeItem[] items) {
     checkWidget ();
-    if (items is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
+    // DWT extension: allow null array
+    //if (items is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
     int length = items.length;
     if (length is 0 || ((table.getStyle() & DWT.SINGLE) !is 0 && length > 1)) {
         deselectAll();