diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-27 18:13:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 18:13:46 +0100 |
commit | ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed (patch) | |
tree | c7a7d4f88d74e21a29a1d1fc69a1c5b75455e4e5 /src | |
parent | Merge pull request #12815 from t895/visual-driver-silly (diff) | |
parent | input: add a missing null pointer check (diff) | |
download | yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.tar yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.tar.gz yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.tar.bz2 yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.tar.lz yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.tar.xz yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.tar.zst yuzu-ce2eb6e8eefaddf641165ef4207a8a9e8c6937ed.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp b/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp index 4897a2784..36b630c7f 100644 --- a/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp +++ b/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp @@ -137,7 +137,7 @@ void NpadAbstractPropertiesHandler::UpdateAllDeviceProperties() { const auto npad_index = NpadIdTypeToIndex(npad_id_type); for (std::size_t aruid_index = 0; aruid_index < AruidIndexMax; aruid_index++) { auto* data = applet_resource_holder->applet_resource->GetAruidData(aruid_index); - if (!data->flag.is_assigned) { + if (data == nullptr || !data->flag.is_assigned) { continue; } auto& npad_entry = data->shared_memory_format->npad.npad_entry[npad_index]; |