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
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
Resolution Note:
Fixed in: 2021.2.0a6