Search Issue Tracker
Fixed in 1.0.0
Votes
0
Found in [Package]
2022.1.0a1
2022.1.0a16
2022.2
Issue ID
1407618
Regression
Yes
[UI Toolkit] Loading an invalid UXML and cloning root on it gives NullReferenceException instead of an explanatory warning
Steps to reproduce:
1. Open the attached project
2. From the menu bar Select QuickTool -> Open
3. Observe the console
Expected results: A warning advising to check your UXML is produced
Actual results: "NullReferenceException: Object reference not set to an instance of an object" produced in Console
Reproducible with: 2022.1.0a16, 2022.1.0b8, 2022.2.0a7
Not reproducible with: 2020.3.30f1, 2021.2.13f1, 2022.1.0a15
Notes:
- "VisualTreeAsset instantiated an empty UI. Check the syntax of your UXML document." warning was produced before regression
- Reproducible on Mac, Windows
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
- GetCurrentAnimatorClipInfoCount() and GetNextAnimatorClipInfoCount() return 0 when animator is in transition
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
Resolution Note (fix version 1.0.0):
Fixed in 2022.2.0a16