Skip to content

Commit 13d2764

Browse files
FIX: NullReferenceException from Path dropdown. (#1887)
* FIX: NullReferenceException from Path dropdown. --------- Co-authored-by: Stefan Schubert <[email protected]> Co-authored-by: StefanUnity <[email protected]>
1 parent 81518e5 commit 13d2764

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
Due to package verification, the latest version below is the unpublished version and the date is meaningless.
99
however, it has to be formatted properly to pass verification tests.
1010

11-
## [Unreleased] - YYYY-MM-DD
11+
## [1.8.1] - 2024-03-14
12+
13+
### Fixed
14+
- NullReferenceException thrown when editing a binding path in InputActionAsset windows.
1215

1316
## [1.8.0] - 2024-03-12
1417

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorSettingsProvider.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ void SaveAssetOnFocusLost()
112112

113113
public static void SetIMGUIDropdownVisible(bool visible, bool optionWasSelected)
114114
{
115+
if (m_ActiveSettingsProvider == null)
116+
return;
117+
115118
// If we selected an item from the dropdown, we *should* still be focused on this settings window - but
116119
// since the IMGUI dropdown is technically a separate window, we have to refocus manually.
117120
//

0 commit comments

Comments
 (0)