Search Issue Tracker
Fixed
Fixed in 1.19.14
Votes
0
Found in [Package]
1.19.6
Issue ID
ADDR-2309
Regression
No
[Addressables] LoadAssetAtPath method null exception is unhandled when loading assets
Reproduction steps:
1. Create a new project
2. Install the Addressables package: Window > Package Manager > Search for "Addressables" in Unity registry
3. Open the "AssetDatabaseProvider" file, located in: Packages/Addressables/Runtime/ResourceManager/ResourceProviders/AssetDatabaseProvider.cs
4. Find the "LoadAssetAtPath()" method implementation
Expected result: Null exception is handled in "LoadAssetAtPath" method's line: Type objType = obj.GetType();
Actual result: Null exception is not handled in "LoadAssetAtPath" method's line: Type objType = obj.GetType();
Reproducible with: 1.18.2, 1.19.6 (2019.4.31f1, 2020.3.19f1, 2021.1.24f1, 2021.2.0b12, 2022.1.0a10)
Can't test with: 1.17.17 ("LoadAssetAtPath" method is not implemented in "AssetDatabaseProvider.cs")
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
- [Android] Audio sound is lower in the Player compared to the native music player
- Feet slide and misalign when playing retargeted animations
- IndexOutOfRangeException is thrown in NativePassCompiler when a graphics buffer is used in more than 5 render passes
- "Undo Stack Overflow" error is thrown, and Undo History is deleted when multiselected GameObjects are reparented to their GrandParents
- SearchColumn of type "ObjectReference" does not get refreshed for the custom SearchProvider when lighting generation finishes
Resolution Note (fix version 1.19.14):
Fixed issue where AssetDatabaseProvider.LoadAssetAtPath causes a null exception if the asset is not in the AssetDatabase.