Skip to content

Commit 008f573

Browse files
authored
FIX: ISXB-1081 Fixed "MissingReferenceException" errors when closing an in-game dropdown field (#2010)
1 parent 2934a64 commit 008f573

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ however, it has to be formatted properly to pass verification tests.
1414
- Fixed Multiple interactions could breaks on Composite Binding. [ISXB-619](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-619)
1515
- Fixed memory leak when the OnScreenStick component was destroyed [ISXB-1070](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1070). Contribution by [LukeUnityDev](https://github.com/LukeUnityDev).
1616
- Fixed Action Maps contextual menu in Action Editor UI that occasionally displays unrelated items.
17+
- Fixed "MissingReferenceException" errors when closing an in-game dropdown field [ISXB-1081](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1081).
1718

1819
### Changed
1920
- Renamed editor Resources directories to PackageResources to fix package validation warnings.

Packages/com.unity.inputsystem/InputSystem/Plugins/UI/InputSystemUIInputModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ private void ProcessPointerMovement(ExtendedPointerEventData eventData, GameObje
473473
}
474474

475475
// now issue the enter call up to but not including the common root
476-
Transform oldPointerEnter = eventData.pointerEnter?.transform;
476+
Transform oldPointerEnter = eventData.pointerEnter ? eventData.pointerEnter.transform : null;
477477
eventData.pointerEnter = currentPointerTarget;
478478
if (currentPointerTarget != null)
479479
{

0 commit comments

Comments
 (0)