Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
0
Found in
6000.0.62f1
6000.2.11f1
6000.3.0b9
6000.4.0a4
6000.5.0a7
6000.6.0a1
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
- [Web][iOS] Web Player keeps restarting on launch when Native C/C++ Multithreading is enabled
- "Add Scene to Scenes in Build" pop-up reappears after Scene has already been added and another Multiplayer Editor Instance is loaded
- TableEntryAdded event is not triggered when a new entry is added in the Localization Tables window
- The macOS Player is built to a different folder than the selected one when the Player is built on Windows
- Editor memory leak in VisualElement when recompiling in a blank URP project
Add comment