return empty array instead of null from interpret.cpp's getStackTrace

This avoids a crash elsewhere when we try to use the result.
This commit is contained in:
Joel Dice 2011-02-01 19:51:00 -07:00
parent 79247a9885
commit ac49eb8c9a

View File

@ -3203,9 +3203,9 @@ class MyProcessor: public Processor {
return ::invoke(t, method);
}
virtual object getStackTrace(vm::Thread*, vm::Thread*) {
virtual object getStackTrace(vm::Thread* t, vm::Thread*) {
// not implemented
return 0;
return makeObjectArray(t, 0);
}
virtual void initialize(BootImage*, uint8_t*, unsigned) {