add a RuntimeException to MirConfig.getProp(. if the requested property is not found...
authormh <mh>
Fri, 20 Dec 2002 02:59:03 +0000 (02:59 +0000)
committermh <mh>
Fri, 20 Dec 2002 02:59:03 +0000 (02:59 +0000)
source/mir/misc/MirConfig.java

index 3c8bfb5..bbf2e3d 100755 (executable)
@@ -106,7 +106,12 @@ public class MirConfig extends Configuration {
    * @return a String containing the prop. value
    */
   public static String getProp(String propName) {
-    return (String)configHash.get(propName);
+    String result = (String)configHash.get(propName);
+
+    if (result==null)
+      throw new RuntimeException("config property '"+propName+"' not available!");
+
+    return result;
   }
 
   /**