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
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
- Scroll offset is framerate-dependent when scrolling with velocity in the Device Simulator
- "Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
- [Mono] Crash on SystemNative_ReadDirR() when building for IOS/Android on a macOS machine
Resolution Note (fix version 2020.2):
Fixed in: 2021.1.0a2
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0b9