From 5fcf2c29bdc52d2714c3b24006c3dcbc50820371 Mon Sep 17 00:00:00 2001 From: emoose Date: Sat, 4 Jan 2020 09:02:49 +0000 Subject: [PATCH] [User/XAM] Oops, fix null pointer deref --- src/xenia/kernel/kernel_state.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xenia/kernel/kernel_state.cc b/src/xenia/kernel/kernel_state.cc index 053b7a581..efffcfc6d 100644 --- a/src/xenia/kernel/kernel_state.cc +++ b/src/xenia/kernel/kernel_state.cc @@ -859,6 +859,9 @@ xam::UserProfile* KernelState::user_profile(uint32_t user_index, } auto user = &user_profiles_[user_index]; + if (!user->get()) { + return nullptr; + } if (!allow_signed_out) { if (!user->get()->signed_in()) { return nullptr;