Unity-Technologies / InputSystem

An efficient and versatile input system for Unity.
Other
1.43k stars 310 forks source link

FIX: Avoid potential for NullReferenceException in FireStateChangeNotifications (ISXB-724). #1927

Closed graham-huws closed 5 months ago

graham-huws commented 5 months ago

Description

A tentative fix, given no known repro, for ISXB-724.

Changes made

Added early returns in cases we'd otherwise crash.

Checklist

Before review:

During merge:

graham-huws commented 5 months ago

@stefanunity I realise there's nothing really to test here given that there's no repro steps for the original issue, but just wanted you aware of this regardless in case you had anything to add 😃

graham-huws commented 5 months ago

N.B. tvos failure is also happening on develop branch.