--- a/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp Mon Sep 13 16:45:00 2010 -0700
+++ b/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp Mon Sep 13 23:24:30 2010 -0700
@@ -200,6 +200,7 @@
void InterpreterRuntime::note_trap(JavaThread* thread, int reason, TRAPS) {
assert(ProfileTraps, "call me only if profiling");
methodHandle trap_method(thread, method(thread));
+
if (trap_method.not_null()) {
methodDataHandle trap_mdo(thread, trap_method->method_data());
if (trap_mdo.is_null()) {