Search Issue Tracker
Active
Votes
0
Found in
6000.0.62f1
6000.2.11f1
6000.3.0b9
6000.4.0a4
Issue ID
UUM-125787
Regression
No
“NullReferenceException: Object reference not set to an instance of an object” error is thrown when doing Disabled Importer Build
Reproduction steps:
1. Create a new project
2. Install Addressables package in Package Manager
3. Import Disable AssetImport on Build Samples
4. Select the Samples folder in the Project window and enable Addressable in the Inspector
5. Build > Disabled Importer Build
6. Observe the Console
Actual result: “NullReferenceException: Object reference not set to an instance of an object” error is thrown
Expected result: No errors or warnings are thrown
Reproducible with: 6000.0.62f1, 6000.2.11f1, 6000.3.0b9, 6000.4.0a4
Reproduced on: macOS Sequoia 15.4 (M4)
Note: Issue is only reproducible the first time
Full error:
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AddressableAssets.Settings.ProfileDataSourceSettings.Create (System.String path, System.String settingName) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Settings/ProfileDataSourceSettings.cs:131)
UnityEditor.AddressableAssets.Settings.ProfileDataSourceSettings.GetSettings (System.String path, System.String settingName) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Settings/ProfileDataSourceSettings.cs:156)
UnityEditor.AddressableAssets.AddressableAnalytics.GenerateBuildData (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput builderInput, UnityEditor.AddressableAssets.Build.AddressableAssetBuildResult result, UnityEditor.AddressableAssets.AddressableAnalytics+BuildType buildType) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Build/AddressableAnalytics.cs:443)
UnityEditor.AddressableAssets.AddressableAnalytics.ReportBuildEvent (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput builderInput, UnityEditor.AddressableAssets.Build.AddressableAssetBuildResult result, UnityEditor.AddressableAssets.AddressableAnalytics+BuildType buildType) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Build/AddressableAnalytics.cs:606)
UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptBase.BuildData[TResult] (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput builderInput) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Build/DataBuilders/BuildScriptBase.cs:126)
UnityEditor.AddressableAssets.Settings.AddressableAssetSettings.BuildPlayerContentImpl (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput buildContext, System.Boolean buildAndRelease) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Settings/AddressableAssetSettings.cs:3077)
UnityEditor.AddressableAssets.Settings.AddressableAssetSettings.BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult& result, UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput input) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Settings/AddressableAssetSettings.cs:2986)
UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor.BuildAddressablesWithResult (UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor+BuildMenuContext context) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:579)
UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:BuildAddressablesWithResult(BuildMenuContext)
AddressablesPlayerBuildProcessor:DefaultBuild(AddressableAssetSettings) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Build/AddressablesPlayerBuildProcessor.cs:143)
AddressablesPlayerBuildProcessor:PrepareForPlayerbuild(AddressableAssetSettings, BuildPlayerContext, Boolean) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Build/AddressablesPlayerBuildProcessor.cs:100)
AddressablesPlayerBuildProcessor:PrepareForBuild(BuildPlayerContext) (at ./Library/PackageCache/com.unity.addressables@38fa2290d5f2/Editor/Build/AddressablesPlayerBuildProcessor.cs:79)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
DisableAssetImportOnBuild:DisabledImporterBuild() (at Assets/Samples/Addressables/2.7.4/Disable AssetImport on Build/Editor/DisableAssetImportOnBuild.cs:39){code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Three Particle Systems have the same name in the "DistortTunnel" scene of the URP Samples
 - Empty class in the "BlitToRTHandlePass" script in URP Samples
 - [iOS] Mesh memory allocation increases in Unity 6 when deployed for iOS
 - Addressables section overlaps other elements in Inspector window
 - Leftover Lighting Settings Asset is present in the Animation folder of Reflection Probes scene in URP Samples
 
Add comment