[ruamoko] Return nil IMP for nil method

Fixes a segfault.
This commit is contained in:
Bill Currie 2020-03-26 14:13:05 +09:00
parent 6e74f2a03f
commit 6e473dc8f2

View file

@ -1800,7 +1800,7 @@ rua_method_get_imp (progs_t *pr)
{
pr_method_t *method = &P_STRUCT (pr, pr_method_t, 0);
R_INT (pr) = method->method_imp;
R_INT (pr) = method ? method->method_imp : 0;
}
static void