diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index 19333f257..c4a7d05ce 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -584,6 +584,10 @@ SDL_EVDEV_Poll(void) Uint32 kval; #endif + if (!_this) { + return; + } + #if SDL_USE_LIBUDEV SDL_UDEV_Poll(); #endif