Search Issue Tracker
Duplicate
Votes
1
Found in
5.6.0f3
Issue ID
901417
Regression
Yes
Adding Text component to the Scroll View causes NullReferenceException: (null) error
To reproduce:
1. Download attached project "TestUI.zip" and open in Unity
2. Open "Test" scene
3. Delete Text component in the Canvas > Scroll View > Viewport > Content
4. Add new Text component to the Canvas > Scroll View > Viewport > Content
5. Press "Play" button
Expected result: After you pressed "Play" button, you will see, that no error popped up in "Console" window
Actual result: After you pressed "Play" button, you will see, that NullReferenceException: (null) error popped up in "Console" window
Note: Error disappears when you save project, restart Unity and reload the project
Reproduced on Unity 5.6.0p1 and 2017.1.0b1
Not reproduced on Unity 5.5.3p1
Regression on Unity 5.6.0b2
-
spacemunkay
Jul 28, 2017 20:09
+1 5.6.1f1
-
GreenMartian
Jul 10, 2017 07:48
+1 5.6.2p2
-
LucasKlein16
Apr 18, 2017 23:46
Any fix for this? any harm to the project?
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #900515