Search Issue Tracker
Fixed in 2023.1.0b8
Fixed in 2023.1.X, 2023.2.X, 2023.2.0a6
Votes
0
Found in
2023.1.0b5
2023.2.0a3
Issue ID
UUM-27567
Regression
Yes
Input results in a "NullReferenceException" when passing "null" to "GUILayout.TextField"
Reproduction steps:
1. Open the “TextFieldNull“ project
2. Open the “TestWindow” window (Tools > TestWindow)
3. Select the text field, input any character, and observe the Console
Expected result: the character is inputted to the text field, and there is no “NullReferenceException” in the Console
Actual result: the character is not inputted to the text field, and there is a “NullReferenceException: Object reference not set to an instance of an object UnityEngine.TextEditingUtilities.ReplaceSelection (System.String replace) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/TextEditingUtilities.cs:459)“ error in the Console
Reproduced in: 2023.1.0a20, 2023.1.0b5, 2023.2.0a3
Not reproduced in: 2020.3.45f1, 2021.3.19f1, 2022.2.7f1, 2023.1.0a19
Reproduced using: macOS 13.0.1 (Intel), Windows 10 (by the reporter)
Note: not reproduced with “EditorGUILayout.TextField”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment