Search Issue Tracker
By Design
Votes
0
Found in
2020.3
2020.3.11f1
2021.1
2021.2
2022.1
Issue ID
1361647
Regression
No
NullReferenceException when the class that implements GenericScriptablePathInspector has the same name as the file it is in
How to reproduce:
1. Open the attached project "2dpathtest.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Select "SpriteShapeController" GameObject in the Hierarchy window
4. Press the Edit Spline button in the Inspector window
5. Edit Sprite Shape in the Scene window (drag any point of the shape in any direction)
6. Enter Play Mode
Expected results: No errors in the Console window
Actual results: "NullReferenceException: Object reference not set to an instance of an object" errors in the Console window
Reproducible with: 2020.3.18f1, 2021.1.20f1, 2021.2.0b11, 2022.1.0a7
Could not test with: 2019.4.30f1 (compilation errors in the Console window)
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
Resolution Note:
Resolving as By Design as there is no issue with the package itself. The user would need to follow SpriteShape package for file naming pattern to resolve this issue