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
- URP ShadowCaster2D is misplaced and distorted when used with rotated Perspective Camera
- UI mesh is drawn twice when two cameras are used
- The Scene view top menu bar disappears when any Draw Mode other than "Wireframe" is selected in the specific project with a corrupted Material
- TabView.tabClosed EventHandler passes the wrong tab index as parameter when closing a tab from oldest to newest order
- Rigidbodies clip through terrain and snap back up when Heightmap Resolution is bigger than the terrain size
Resolution Note (fix version 2020.2):
Fixed in: 2021.1.0a2
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0b9