From 146979f67ea4a8724beff7cb4ac8861537a7f0cb Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 10 May 2018 21:12:19 +0200 Subject: [PATCH] Qt/IOWindow: Fix crash --- Source/Core/DolphinQt2/Config/Mapping/IOWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DolphinQt2/Config/Mapping/IOWindow.cpp b/Source/Core/DolphinQt2/Config/Mapping/IOWindow.cpp index 1e3df5e125..903ce56b33 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/IOWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/IOWindow.cpp @@ -217,6 +217,9 @@ void IOWindow::UpdateOptionList() const auto device = g_controller_interface.FindDevice(m_devq); + if (device == nullptr) + return; + if (m_reference->IsInput()) { for (const auto* input : device->Inputs())