mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 22:45:40 +01:00
Prevent nullptr dereference on swkbd error case
This commit is contained in:
parent
32343d820d
commit
510838759f
@ -60,7 +60,7 @@ void SoftwareKeyboard::Initialize() {
|
||||
std::memcpy(&config, keyboard_config.data(), sizeof(KeyboardConfig));
|
||||
|
||||
const auto work_buffer_storage = broker.PopNormalDataToApplet();
|
||||
ASSERT(work_buffer_storage != nullptr);
|
||||
ASSERT_OR_EXECUTE(work_buffer_storage != nullptr, { return; });
|
||||
const auto& work_buffer = work_buffer_storage->GetData();
|
||||
|
||||
if (config.initial_string_size == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user