--- old/src/hotspot/share/oops/instanceKlass.cpp 2019-10-24 17:42:46.991666122 +0000 +++ new/src/hotspot/share/oops/instanceKlass.cpp 2019-10-24 17:42:46.160322477 +0000 @@ -3545,7 +3545,7 @@ if (components != NULL) { for (int i = 0; i < components->length(); i++) { RecordComponent* component = components->at(i); - if (component) { + if (component != NULL) { component->collect_statistics(sz); } }