diff options
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 902516b29..db9f5e701 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -155,8 +155,10 @@ private: | |||
| 155 | IPC::RequestParser rp{ctx}; | 155 | IPC::RequestParser rp{ctx}; |
| 156 | const auto vibration_device_handle{rp.PopRaw<Controller_NPad::DeviceHandle>()}; | 156 | const auto vibration_device_handle{rp.PopRaw<Controller_NPad::DeviceHandle>()}; |
| 157 | 157 | ||
| 158 | applet_resource->GetController<Controller_NPad>(HidController::NPad) | 158 | if (applet_resource != nullptr) { |
| 159 | .InitializeVibrationDevice(vibration_device_handle); | 159 | applet_resource->GetController<Controller_NPad>(HidController::NPad) |
| 160 | .InitializeVibrationDevice(vibration_device_handle); | ||
| 161 | } | ||
| 160 | 162 | ||
| 161 | LOG_DEBUG(Service_HID, "called, npad_type={}, npad_id={}, device_index={}", | 163 | LOG_DEBUG(Service_HID, "called, npad_type={}, npad_id={}, device_index={}", |
| 162 | vibration_device_handle.npad_type, vibration_device_handle.npad_id, | 164 | vibration_device_handle.npad_type, vibration_device_handle.npad_id, |