Search Issue Tracker
Fixed
Fixed in 6000.0.63f1, 6000.2.14f1, 6000.3.0f1, 6000.4.0a6, 6000.5.0a2
Votes
0
Found in
6000.0.60f1
6000.2.8f1
6000.3.0b7
6000.4.0a3
6000.5.0a1
Issue ID
UUM-122775
Regression
No
NullReferenceException is thrown in BuilderAssetModificationProcessor.IsUxml() when null string is passed as the assetPath parameter
Reproduction steps:
1. Open the attached “IN-121235.zip” project
2. From the top menu click Debug > Show Bug
3. Observe the Console
Expected result: No errors
Actual result: NullReferenceException is thrown
Reproducible with: 2023.1.0b1, 6000.0.60f1, 6000.2.8f1, 6000.3.0b7, 6000.4.0a3
Reproducible on: macOS 26.0.1 (M1 Max), Windows 11
Not reproducible on: No other environment tested
Notes:
- The root cause of this issue is that AssetModificationProcessor.OnWillSaveAssets() can pass arrays containing null entries under certain conditions (asset deletion during save, concurrent operations, etc.). The IsUxml() method does not handle this case
- The intermittent nature of the bug in production suggests that Unity's asset pipeline occasionally passes null entries in the paths array during: 1) Concurrent asset operations, 2) Asset deletion during save operations, 3) Long-running main thread operations that stall asset processing, 4) Batch build scenarios
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][iOS][UnityPlayerActivity] Legacy InputField.onEndEdit is not called when ending text edit
- Transform corruption and/or crash on PhysX::CreateCharacterController when spawning physics objects into Prefab stages
- UNITY_EDITOR data is Serialized into AssetBundle when building on the active Build Target
- "TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations..." error when changing the Packages "Cache Location" folder
- CompilationPipeline.assemblyCompilationFinished() hangs unity when reloading domain
Resolution Note (fix version 6000.5.0a2):
Prevent null asset to be passed to OnWillSaveAssets and added Error messages
Resolution Note (fix version 6000.3.0f1):
Prevent null asset to be passed to OnWillSaveAssets