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
- WebGL Player with WebGPU Graphics API fails to render Scene when custom Render Feature is used
- “EndLayoutGroup” error thrown when changing Shader Precision Model settings in Build Profiles window > Player Settings Overrides
- Button hover state uses default theme color when a custom .uss is applied
- Samples Showcase script warning does not clear after enabling required settings until GameObject is reselected
- VFX Particles receive shadow artifacts when using ShaderGraph with enabled shadows and Face Camera Plane Orient mode
Resolution Note:
Fixed in: 2021.2.0a6