Skip to content

Conversation

@laanwj
Copy link

@laanwj laanwj commented Feb 11, 2026

Fix a crash on joystick disconnection by checking that pJoystick[i] is non-null before dereferencing it.

(im running into this regularly while disconnecting the session in moonlight/sunshine, which removes a bunch of virtual libevent devices)

Check that `pJoystick[i]` is non-null before dereferencing it.
@wookieejedi wookieejedi added fix A fix for bugs, not-a-bugs, and/or regressions. controls A feature or issue related to input devices or actions controlled/triggered by them labels Feb 11, 2026
@wookieejedi wookieejedi added this to the Release 25.0.1 milestone Feb 11, 2026
Copy link
Member

@wookieejedi wookieejedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and simple fix!

@wookieejedi
Copy link
Member

Even though it is a 1-line fix, it would be good to have @z64555 take a look, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls A feature or issue related to input devices or actions controlled/triggered by them fix A fix for bugs, not-a-bugs, and/or regressions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants