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

Packman

-

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

  1. Resolution Note (fix version 2020.2):

    Fixed in: 2021.1.0a2

  2. Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.0b9

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.