diff dwt/program/Program.d @ 239:43b41c7fe84a

work on allow null strings and arrays
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Jun 2008 16:27:36 +0200
parents 36f5cb12e1a2
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/program/Program.d	Fri Jun 20 01:29:54 2008 +0200
+++ b/dwt/program/Program.d	Fri Jun 20 16:27:36 2008 +0200
@@ -74,12 +74,10 @@
  * @param extension the program extension
  * @return the program or <code>null</code>
  *
- * @exception IllegalArgumentException <ul>
- *      <li>ERROR_NULL_ARGUMENT when extension is null</li>
- *  </ul>
  */
 public static Program findProgram (String extension) {
-    if (extension is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
+    // DWT extension: allow null string
+    //if (extension is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
     if (extension.length is 0) return null;
     if (extension.charAt (0) !is '.') extension = "." ~ extension; //$NON-NLS-1$
     /* Use the character encoding for the default locale */