Search Issue Tracker
Fixed
Fixed in 1.15.0
Votes
0
Found in [Package]
1.14.1
Issue ID
ISXB-1636
Regression
No
"System.NullReferenceException: Object reference not set to an instance of an object" occurs when calling "FindKeyOnCurrentKeyboardLayout()" with arrow keys
How to reproduce:
1. Open the attached “IN-110290” project
2. Open the “SampleScene”
3. Enter Play Mode
4. Observe the Console window
Expected result: No errors appear in the Console window
Actual result: “System.NullReferenceException: Object reference not set to an instance of an object”
Reproducible with: 1.14.0 (2023.3.0a12), 1.14.1 (2023.3.0a12, 6000.0.55f1, 6000.2.0f1, 6000.3.0a4)
Could not test with: 1.9.0, 1.11.2, 1.12.0, 1.13.0, 1.13.1 (2023.3.0a12, 6000.0.18f1) (“Key not found on current keyboard layout.”)), 1.14.1 (2023.3.0a11 (Could not clear “error CS0117: 'BuildTarget' does not contain a definition for 'VisionOS'“))
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
- There is also a warning stating “Null key at index 110 (Key.OEM5)”
- The issue only reproduces when using "upArrow", "leftArrow", etc, not when using "up" or "left"
Comments (1)
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
taichis
Sep 04, 2025 06:33
In the WebGL version of Unity6000.0.56f1, the exception could not be caught by System.Exception, causing an alert to pop up and preventing the game from continuing.