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)”