Diff of /main/trunk/interpreter/classes/ObjectClass.cpp [r8519] .. [r8520] Maximize Restore

  Switch to side-by-side view

--- a/main/trunk/interpreter/classes/ObjectClass.cpp
+++ b/main/trunk/interpreter/classes/ObjectClass.cpp
@@ -254,7 +254,7 @@
  */
 RexxMethod *RexxInternalObject::instanceMethod(RexxString  *method_name)
 {
-    return OREF_NULL;
+    return (RexxMethod *)TheNilObject;
 }
 
 
@@ -272,10 +272,10 @@
     method_name = stringArgument(method_name, ARG_ONE)->upper();
     // retrieve the method from the dictionary
     RexxMethod *method_object = (RexxMethod *)this->behaviour->getMethodDictionary()->stringGet(method_name);
-    // this is an error if it doesn't exist
+    // We return .nil if the method doesn't exist.
     if (method_object == OREF_NULL)
     {
-        reportException(Error_No_method_name, this, method_name);
+        return (RexxMethod *)TheNilObject;
     }
     return method_object;    // got a live one
 }