summaryrefslogtreecommitdiff
path: root/libjava/interpret-run.cc
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-09 14:55:45 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-09 14:55:45 +0000
commit19a46b0dba54a9ce592c0cdd9c8bd1064b2a151b (patch)
tree6a8a5a8d152290df4442d980d66046b5c2abe875 /libjava/interpret-run.cc
parentb5f8cffe570514b8bd02597c6e647fdd0a3ae824 (diff)
downloadgcc-19a46b0dba54a9ce592c0cdd9c8bd1064b2a151b.tar.gz
* interpret-run.cc (invokevirtual_resolved): Nullcheck object on
TOS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128298 138bc75d-0d04-0410-961f-82ee72b054a4
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);