Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.0.0-preview.11
Issue ID
1305483
Regression
Yes
NullReferenceException gets thrown in the Console when the Label Text value contains CJK characters and text wrap is enabled
How to reproduce:
1. Open the attached '1305483.zip' project
2. In the Project window double-click on the 'Test' Asset
3. Observe the Console
Expected result: No visible errors present
Actual result: The 'NullReferenceException' errors appear in the Console
Reproducible with: UI Toolkit 1.0.0-preview.11 (2020.1.17f1, 2020.2.2f1), 1.0.0-preview.13 (2020.1.17f1, 2020.2.2f1)
Not reproducible with: UI Toolkit 1.0.0-preview.9 (2020.1.17f1)
Cannot test with: UI Toolkit 1.0.0-preview.9 (2018.4.30f1, 2019.4.18f1, 2020.2.2f1, 2021.1.0b2, 2021.2.0a1), 1.0.0-preview.13 (2018.4.30f1, 2019.4.18f1, 2021.1.0b2, 2021.2.0a1)(due to package errors)
Notes:
- The issue reproduces with Japanese, Chinese, and Korean characters
- The issue does not reproduce with Belarussian, Sanskrit, Arabic, Divehi, Odia, and Latin characters
- The following error gets thrown in the Console: 'NullReferenceException: Object reference not set to an instance of an object'
- The issue is also reproducible when changing the Text value via a Script
- The issue does not reproduce if the text wrap is disabled
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
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Resolution Note:
Fixed in: 2021.2.0a6