src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
changeset 51078 fc6cfe40e32a
parent 50746 85789fb05154
child 51379 802f7e5e7e6b
--- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp	Fri Jul 13 11:21:55 2018 +0800
+++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp	Thu Jul 12 16:31:28 2018 +0200
@@ -349,7 +349,9 @@
     klass = *((Klass**) (intptr_t) (base_address + offset));
   } else {
     THROW_MSG_0(vmSymbols::java_lang_IllegalArgumentException(),
-                err_msg("Unexpected arguments: %s " JLONG_FORMAT " %s", base_object->klass()->external_name(), offset, compressed ? "true" : "false"));
+                err_msg("Unexpected arguments: %s " JLONG_FORMAT " %s",
+                        base_object != NULL ? base_object->klass()->external_name() : "null",
+                        offset, compressed ? "true" : "false"));
   }
   assert (klass == NULL || klass->is_klass(), "invalid read");
   oop result = CompilerToVM::get_jvmci_type(klass, CHECK_NULL);