OSDN Git Service

* interpret-run.cc (invokevirtual_resolved): Nullcheck object on
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Sep 2007 14:55:45 +0000 (14:55 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Sep 2007 14:55:45 +0000 (14:55 +0000)
        TOS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128298 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/interpret-run.cc

index a9458e9..dd86f27 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-09  Andrew Haley  <aph@redhat.com>
+
+       * interpret-run.cc (invokevirtual_resolved): Nullcheck object on
+       TOS.
+
 2007-09-06  Tom Tromey  <tromey@redhat.com>
 
        * testsuite/libjava.lang/StackTrace2.jar: Rebuilt.
index 1eea57e..fc2e1e5 100644 (file)
@@ -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);