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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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