# HG changeset patch # User never # Date 1239996138 25200 # Node ID 981375ca07b7f0605f92f57aad95122e8c385a4d # Parent 4961a8a726a4d86e606afca1df8f86a90cf6cb20 6831604: missing null check in guarantee Reviewed-by: kvn diff -r 4961a8a726a4 -r 981375ca07b7 src/share/vm/memory/dump.cpp --- a/src/share/vm/memory/dump.cpp Wed Apr 15 21:31:46 2009 -0700 +++ b/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();