OSDN Git Service

Check for failure in GetDirectBufferAddress.
authorAndy McFadden <fadden@android.com>
Wed, 24 Jun 2009 23:56:06 +0000 (16:56 -0700)
committerAndy McFadden <fadden@android.com>
Wed, 24 Jun 2009 23:56:06 +0000 (16:56 -0700)
commit72d61fba8ad3d3c720e6df61c7ae07baa4fd7838
treea3aac49a8569433d87dc66bfd6227f61ccc2c53c
parentcda8f8abd1d02f5ab58add1ebb23f20fdab6341c
Check for failure in GetDirectBufferAddress.

We now check for a null result or a pending exception in the JNI
GetDirectBufferAddress function.  This prevents a VM crash when somebody
tries to get the address of a non-direct buffer.

For internal bug 1926596.
vm/Jni.c