summaryrefslogtreecommitdiffstats
path: root/runtime/jdwp
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2013-11-28 18:53:35 +0100
committerSebastien Hertz <shertz@google.com>2013-12-12 09:29:04 +0100
commit0630ab5239a7d7be24dedbc3f66c822332446fc3 (patch)
tree3043efa35ae177db590340138b52772bf71642dd /runtime/jdwp
parent315ab6c077c4db2031f1ffa40b78722d8269dc9b (diff)
downloadart-0630ab5239a7d7be24dedbc3f66c822332446fc3.zip
art-0630ab5239a7d7be24dedbc3f66c822332446fc3.tar.gz
art-0630ab5239a7d7be24dedbc3f66c822332446fc3.tar.bz2
Fix null argument handling during invoke from JDWP.
Fix a crash when passing null argument to a JDWP invoke. Change-Id: I167f93f3a411f0de8458db3ba5bed3169d557ee9
Diffstat (limited to 'runtime/jdwp')
-rw-r--r--runtime/jdwp/object_registry.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/jdwp/object_registry.cc b/runtime/jdwp/object_registry.cc
index be2219c..7408e92 100644
--- a/runtime/jdwp/object_registry.cc
+++ b/runtime/jdwp/object_registry.cc
@@ -118,6 +118,9 @@ mirror::Object* ObjectRegistry::InternalGet(JDWP::ObjectId id) {
}
jobject ObjectRegistry::GetJObject(JDWP::ObjectId id) {
+ if (id == 0) {
+ return NULL;
+ }
Thread* self = Thread::Current();
MutexLock mu(self, lock_);
id_iterator it = id_to_entry_.find(id);