Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2020.2.0a12
2020.2.0a16
Issue ID
1260558
Regression
Yes
[PackMan] NullReferenceException error is thrown if a sample in package.json does not exist
How to reproduce:
1. Open user's attached "PacManBugs.zip" project
2. Go to Window -> Package Manager
3. Expand "elZach" in the Package Manager
4. Select the "elZach LevelEditor" package
5. Observe the Console log
Expected result: No errors are thrown when selecting a package, which doesn't have "displayName" or "path" fields in the samples attribute in the package.json file
Actual result: "NullReferenceException: Object reference not set to an instance of an object" error is thrown in the Console log when a "displayName" field is not in the samples attribute in the package.json file
Reproducible with: 2020.2.0a12, 2020.2.0a18
Not reproducible with: 2018.4.25f1, 2019.4.4f1, 2020.1.0b16, 2020.2.0a11
Notes:
- No error is thrown when the "description" field is removed from the samples attribute
- "ArgumentNullException: Value cannot be null." error is thrown when there is no "path" field in the samples attribute in the package.json file
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
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
Resolution Note (fix version 2020.2):
Fixed in: 2021.1.0a2
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0b9