diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-21 10:50:22 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-21 10:50:22 -0500 | 
| commit | ad7445d4ccedc965e6b9314923fb8da309d97917 (patch) | |
| tree | 99b9015b6c492a77c256a829fef296b192cf921e | |
| parent | 3a302712195a4ef07fff872d526e314ab04268b5 (diff) | |
| parent | 5cd3b6f58c64a77c2176e07842f42ad0d6f8749e (diff) | |
Merge pull request #12425 from german77/temp-fix
service: hid: Fix crash on InitializeVibrationDevice
| -rw-r--r-- | src/core/hle/service/hid/hid_server.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cpp index de24b0401..06a01c02c 100644 --- a/src/core/hle/service/hid/hid_server.cpp +++ b/src/core/hle/service/hid/hid_server.cpp @@ -51,7 +51,7 @@ private:          IPC::RequestParser rp{ctx};          const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()}; -        if (resource_manager != nullptr) { +        if (resource_manager != nullptr && resource_manager->GetNpad()) {              resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle);          } | 
