Index: vm/em/src/NValueProfileCollector.cpp =================================================================== --- vm/em/src/NValueProfileCollector.cpp (revision 503715) +++ vm/em/src/NValueProfileCollector.cpp (working copy) @@ -239,8 +239,11 @@ { lockProfile(); VPInstructionProfileData* _temp_vp = ValueMap[instructionKey]; + if (_temp_vp == NULL) { + return 0; + } flushInstProfile(_temp_vp); - POINTER_SIZE_INT result = (_temp_vp == NULL) ? 0 : getVPC()->find_max(_temp_vp->TNV_Table); + POINTER_SIZE_INT result = getVPC()->find_max(_temp_vp->TNV_Table); unlockProfile(); return result; }