hotspot/src/share/vm/oops/instanceKlass.hpp
changeset 15873 5ce4f526e0ba
parent 15601 df8faef6efaf
child 15930 b684d8cc0108
--- a/hotspot/src/share/vm/oops/instanceKlass.hpp	Tue Mar 05 08:17:18 2013 -0800
+++ b/hotspot/src/share/vm/oops/instanceKlass.hpp	Tue Mar 05 18:03:36 2013 -0800
@@ -536,7 +536,9 @@
     assert(is_anonymous(), "not anonymous");
     Klass** addr = (Klass**)adr_host_klass();
     assert(addr != NULL, "no reversed space");
-    *addr = host;
+    if (addr != NULL) {
+      *addr = host;
+    }
   }
   bool is_anonymous() const                {
     return (_misc_flags & _misc_is_anonymous) != 0;
@@ -758,7 +760,10 @@
   void set_implementor(Klass* k) {
     assert(is_interface(), "not interface");
     Klass** addr = adr_implementor();
-    *addr = k;
+    assert(addr != NULL, "null addr");
+    if (addr != NULL) {
+      *addr = k;
+    }
   }
 
   int  nof_implementors() const       {