--- 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();