Browse Source
Merge pull request #4154 from ogniK5377/swkbd-nullptr
Prevent nullptr dereference on swkbd error case
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/core/hle/service/am/applets/software_keyboard.cpp
|
|
|
@ -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) |
|
|
|
|