Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
0
Found in
6000.3.12f1
6000.4.1f1
6000.5.0b1
6000.6.0a1
Issue ID
UUM-137672
Regression
No
"NullReferenceException" and "Package manager extension failed with error" are thrown when a Sample in package.json is missing the "path" or "displayName" field
Steps to reproduce:
- Create a new project using Universal 3D template
- Go to Window > Package Management > Package Manager
- Click on the "+" icon and select "Create Package..."
- Create a package with any name and Locate it
- Open the "package.json" of the created package
- Add a sample array but intentionally omit the displayName or path field, for example:
{code:java}
"samples":[
{
"path": "Samples/Example"
}
],{code}
- Save and close package.json
- Observe the Console
Actual results: "NullReferenceException: Object reference not set to an instance of an object" error and "[Package Manager Window] Package manager extension failed with error: System.NullReferenceException: Object reference not set to an instance of an object" when opening Package Manager
Expected results: The path and displayName fields are validated, providing a clear and user-friendly error or warning message instead of throwing a NullReferenceException
Reproducible with versions: 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1
Tested on (OS): macOS 26.3 (M1)
Notes:
- In earlier versions (6000.4 and below), if a user provided a displayName but left the path empty, the UI would load it. However, clicking "Import" would default to the package root and import the entire package into Assets/Samples, causing massive GUID and Assembly Definition conflicts in the Console
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment