7035161: assert(!o->is_null_object()) failed: null object not yet handled here.
authornever
Fri, 08 Apr 2011 23:00:14 -0700
changeset 9123 4c7a8da5653b
parent 9122 07caf53a77e5
child 9124 f60dee480d49
7035161: assert(!o->is_null_object()) failed: null object not yet handled here. Reviewed-by: kvn
hotspot/src/share/vm/ci/ciInstance.cpp
--- a/hotspot/src/share/vm/ci/ciInstance.cpp	Fri Apr 08 20:52:28 2011 -0700
+++ b/hotspot/src/share/vm/ci/ciInstance.cpp	Fri Apr 08 23:00:14 2011 -0700
@@ -66,8 +66,8 @@
          "invalid access");
   VM_ENTRY_MARK;
   ciConstant result;
-  oop obj = get_oop();
-  assert(obj != NULL, "bad oop");
+  Handle obj = get_oop();
+  assert(!obj.is_null(), "bad oop");
   BasicType field_btype = field->type()->basic_type();
   int offset = field->offset();