1.1 --- a/src/os_cpu/linux_x86/vm/os_linux_x86.cpp Sat Mar 16 07:40:36 2013 -0700 1.2 +++ b/src/os_cpu/linux_x86/vm/os_linux_x86.cpp Sat Mar 16 07:41:09 2013 -0700 1.3 @@ -340,7 +340,7 @@ 1.4 // here if the underlying file has been truncated. 1.5 // Do not crash the VM in such a case. 1.6 CodeBlob* cb = CodeCache::find_blob_unsafe(pc); 1.7 - nmethod* nm = cb->is_nmethod() ? (nmethod*)cb : NULL; 1.8 + nmethod* nm = (cb != NULL && cb->is_nmethod()) ? (nmethod*)cb : NULL; 1.9 if (nm != NULL && nm->has_unsafe_access()) { 1.10 stub = StubRoutines::handler_for_unsafe_access(); 1.11 }