Search Issue Tracker
Fixed
Fixed in 2022.3.0f1, 2023.1.0b19, 2023.2.0a19
Votes
0
Found in
2022.2.17f1
2023.1.0b14
2023.2.0a12
Issue ID
UUM-34875
Regression
Yes
[URP] NullReferenceException error when creating new Lens Flare Data for Lens Flare (SRP) component
Steps to reproduce:
1. Open the attached “LensFlareBug” project
2. Open the “SampleScene” scene
3. Create an empty GameObject
4. To the GameObject add Lens Flare (SRP) component
5. Create new Lens Flare Data and observe the Console
Expected result: No errors are thrown
Actual result: “NullReferenceException: Object reference not set to an instance of an object UnityEngine.Rendering.CoreUtils.FixupDepthSlice (System.Int32 depthSlice, UnityEngine.Rendering.RTHandle buffer)” error is thrown
Reproducible with: 2022.2.10f1, 2022.2.17f1, 2023.1.0b13, 2023.1.0b14, 2023.2.0a6, 2023.2.0a12
Not reproducible with: 2021.3.24f1, 2022.2.9f1, 2023.1.0a1, 2023.1.0b12, 2023.2.0a1, 2023.2.0a5
Could not test with: 2020.3.48f1 (doesn’t have Lens Flare (SRP) component)
Reproduced on: macOS Monterey 12.2 (Intel)
Note: The issue isn’t reproducible with HDRP
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Property field override bar does not update transparency correctly when switching between valid and invalid GameObjects
- Project window selection is not updated when search term is changed
- Error when adding valid MonoBehaviour script to Prefab in Project window
- Editor Launch Screen will close when Enter is pressed on it
- ObjectPool's pool is destroyed when entering Play Mode without reloading Domain
Add comment