6831604: missing null check in guarantee
authornever
Fri, 17 Apr 2009 12:22:18 -0700
changeset 2538 1ecc4413e7e7
parent 2537 bc0063aa5b7f
child 2539 5bef15d9d54a
child 2561 a62b5317b682
child 2569 9e8daec25638
child 2735 84d9ff956137
6831604: missing null check in guarantee Reviewed-by: kvn
hotspot/src/share/vm/memory/dump.cpp
--- a/hotspot/src/share/vm/memory/dump.cpp	Wed Apr 15 21:31:46 2009 -0700
+++ b/hotspot/src/share/vm/memory/dump.cpp	Fri Apr 17 12:22:18 2009 -0700
@@ -929,7 +929,8 @@
     guarantee(SystemDictionary::constraints()->number_of_entries() == 0,
               "loader constraints are not saved");
     // Revisit and implement this if we prelink method handle call sites:
-    guarantee(SystemDictionary::invoke_method_table()->number_of_entries() == 0,
+    guarantee(SystemDictionary::invoke_method_table() == NULL ||
+              SystemDictionary::invoke_method_table()->number_of_entries() == 0,
               "invoke method table is not saved");
     GenCollectedHeap* gch = GenCollectedHeap::heap();