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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.