Search Issue Tracker

Fixed

Fixed in 1.19.1

Votes

0

Found in

1.19.1

Issue ID

UUM-137116

Regression

No

NullReferenceException is thrown when selecting “Remove All Action Maps” on the default project-wide Actions Asset

Input System

-

How to reproduce:
1. Open the attached “IN-135876” project
2. At the top of the window click Edit → Project Settings → Input System Package
3. Click on the “Create and assign a default project-wide Action Asset” button
4. Click the 3 dot button on the right
5. Click “Remove All Action Maps”
6. Observe the Console

Actual result: NullReferenceException error appears in the Console
Expected result: No errors appear in the Console

Reproducible with: 1.8.0 (6000.0.70f1, 6000.5.0a8), 1.11.0 (6000.6.0a1 (15cfb028d9e2)), 1.19.0 (6000.6.0a1 (15cfb028d9e2))
Not reproducible with: 1.11.0 (6000.0.70f1, 6000.5.0a8), 1.19.0 (6000.0.70f1, 6000.5.0a8)

Reproducible on: Windows 11, macOS
Not reproducible on: No other environments tested

Note: Error “NullReferenceException: Object reference not set to an instance of an object at UnityEngine.InputSystem.Editor.ActionMapsView.<.ctor>b__0_0 (System.Collections.Generic.IEnumerable1[T] selectedIndices)”

  1. Resolution Note:

    Fixed - Only dispatch when there is a valid selected item

  2. Resolution Note (fix version 1.19.1):

    Fixed - Only dispatch when there is a valid selected item

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.