diff -r 2cd8bbccbd2d -r 4ac20e5f96ce src/hotspot/share/oops/objArrayKlass.cpp --- a/src/hotspot/share/oops/objArrayKlass.cpp Tue Jul 31 13:12:06 2018 -0400 +++ b/src/hotspot/share/oops/objArrayKlass.cpp Tue Jul 31 14:24:10 2018 -0400 @@ -477,8 +477,12 @@ int print_len = MIN2((intx) oa->length(), MaxElementPrintSize); for(int index = 0; index < print_len; index++) { st->print(" - %3d : ", index); - oa->obj_at(index)->print_value_on(st); - st->cr(); + if (oa->obj_at(index) != NULL) { + oa->obj_at(index)->print_value_on(st); + st->cr(); + } else { + st->print_cr("NULL"); + } } int remaining = oa->length() - print_len; if (remaining > 0) { @@ -494,7 +498,11 @@ element_klass()->print_value_on(st); int len = objArrayOop(obj)->length(); st->print("[%d] ", len); - obj->print_address_on(st); + if (obj != NULL) { + obj->print_address_on(st); + } else { + st->print_cr("NULL"); + } } const char* ObjArrayKlass::internal_name() const {