Author: rgrjr
Date: Sat Feb 18 08:53:50 2006
New Revision: 11648
Modified:
trunk/src/pmc/multisub.pmc
Log:
+ (invoke): Signal a METH_NOT_FOUND exception (instead of a
segfault) when Parrot_MMD_dispatch_func returns NULL.
Modified: trunk/src/pmc/multisub.pmc
==============================================================================
--- trunk/src/pmc/multisub.pmc (original)
+++ trunk/src/pmc/multisub.pmc Sat Feb 18 08:53:50 2006
@@ -59,6 +59,10 @@ pmclass MultiSub extends ResizablePMCArr
void* invoke(void *next) {
PMC *func = Parrot_MMD_dispatch_func(INTERP, SELF, NULL);
+ if (! func) {
+ real_exception(interpreter, NULL, METH_NOT_FOUND,
+ "Method not found.");
+ }
return VTABLE_invoke(INTERP, func, next);
}
}