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
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
- Lighting generation freezes the Editor during the Global Illumination Post Processing stage when baking lighting on certain systems
Resolution Note (fix version 2020.2):
Fixed in: 2021.1.0a2
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0b9