summaryrefslogtreecommitdiff
path: root/libjava/interpret-run.cc
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2007-09-09 14:55:45 +0000
committerAndrew Haley <aph@gcc.gnu.org>2007-09-09 14:55:45 +0000
commitf144591b54e4bd5cd794c514fd421e226903cf74 (patch)
tree6a8a5a8d152290df4442d980d66046b5c2abe875 /libjava/interpret-run.cc
parent61ce048a279aac6108021ad4db795318ed5d5c21 (diff)
downloadgcc-f144591b54e4bd5cd794c514fd421e226903cf74.tar.gz
interpret-run.cc (invokevirtual_resolved): Nullcheck object on TOS.
* interpret-run.cc (invokevirtual_resolved): Nullcheck object on TOS. From-SVN: r128298
Diffstat (limited to 'libjava/interpret-run.cc')
-rw-r--r--libjava/interpret-run.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libjava/interpret-run.cc b/libjava/interpret-run.cc
index 1eea57e1f9e..fc2e1e514c1 100644
--- a/libjava/interpret-run.cc
+++ b/libjava/interpret-run.cc
@@ -563,6 +563,7 @@ details. */
}
else
{
+ NULLCHECK (sp[0].o);
jobject rcv = sp[0].o;
_Jv_VTable *table = *(_Jv_VTable**) rcv;
fun = (void (*)()) table->get_method (rmeth->method->index);