diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_debug.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_debug.cc index 45510bac2..51878814c 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_debug.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_debug.cc @@ -42,6 +42,12 @@ void RtlRaiseException(pointer_t record) { reinterpret_cast(&record->exception_information[0]); assert_true(thread_info->type == 0x1000); + + if (!thread_info->name_ptr) { + XELOGD("SetThreadName called with null name_ptr"); + return; + } + auto name = kernel_memory()->TranslateVirtual(thread_info->name_ptr);