Fixed crash if the event subsystem didn't initialize properly
diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c
index 19333f2..c4a7d05 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