commit | cc20c55f1a752c71cd92702f64624702ca536a2e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu May 12 12:17:00 2011 -0700 |
committer | Elliott Hughes <enh@google.com> | Thu May 12 12:17:00 2011 -0700 |
tree | d89459f3247e703951b53a720527b890d4b5eebc | |
parent | 3ddce1c578d8c80a792d92c83930bba5fdbb9410 [diff] |
Improve diagnostics when an invalid reference is given to Get/Set*Field functions. It may be worth treating NULL as a special case of "invalid" for an even clearer diagnostic, but this is a huge leap forward from just crashing inside CheckJNI: W( 4443) JNI ERROR: field operation on invalid reference ((nil)) (dalvikvm) E( 4443) VM aborting (dalvikvm) Change-Id: Ied7090a57becb10ca7c8cb4be56cd7c1f109add5