Search Issue Tracker
Fixed
Fixed in 1.9.0
Votes
0
Found in [Package]
1.8.2
Issue ID
ISXB-895
Regression
No
InputActionAsset.FindAction throws exception if map is empty. (EditMode)
*Steps to reproduce:*
{{var asset = ScriptableObject.Create<InputActionAsset>();}}
{{asset.AddActionMap("Map");}}
{{asset.FindAction("Map/NonExistent"); // <--- NullReferenceException here}}
*Actual results:*
Exception thrown of type NullReferenceException.
*Expected results:*
null returned from FindAction
*Reproducible with versions:*
Input System 1.8.2
*Not reproducible with versions:*
Doesn't seem to be a regression
*Can’t test with versions:*
N/A
*Tested on (OS):*
macOS
*Notes:*
* FindAction should have same semantics regardless of used search string.
* Either null checking is needed in this function or InputActionMap without actions should be created with an array of size 0.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is enabled
Resolution Note (fix version 1.9.0):
Fixed in upcoming Input System version 1.8.3