src/hotspot/share/runtime/fieldDescriptor.cpp
changeset 51268 4ac20e5f96ce
parent 49359 59f6547e151f
child 51467 12997ebbc0d8
--- a/src/hotspot/share/runtime/fieldDescriptor.cpp	Tue Jul 31 13:12:06 2018 -0400
+++ b/src/hotspot/share/runtime/fieldDescriptor.cpp	Tue Jul 31 14:24:10 2018 -0400
@@ -188,12 +188,20 @@
     case T_ARRAY:
       st->print(" ");
       NOT_LP64(as_int = obj->int_field(offset()));
-      obj->obj_field(offset())->print_value_on(st);
+      if (obj->obj_field(offset()) != NULL) {
+        obj->obj_field(offset())->print_value_on(st);
+      } else {
+        st->print_cr("NULL");
+      }
       break;
     case T_OBJECT:
       st->print(" ");
       NOT_LP64(as_int = obj->int_field(offset()));
-      obj->obj_field(offset())->print_value_on(st);
+      if (obj->obj_field(offset()) != NULL) {
+        obj->obj_field(offset())->print_value_on(st);
+      } else {
+        st->print_cr("NULL");
+      }
       break;
     default:
       ShouldNotReachHere();