Search Issue Tracker
Fixed in 9.0.0
Votes
0
Found in [Package]
7.2.1, 7.2.0
Issue ID
1220931
Regression
Yes
[HDRP] NullReferenceException error is thrown on resetting "HD Additional Light Data" component
NullReferenceException error is thrown on resetting "HD Additional Light Data" component.
Steps to repro:
1. Open the attached project.
2. Select Directional Light.
3. Reset "HD Additional Light Data" component.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2020.1.0a24.3133(0efcce64deba), 2019.3.2f1, 2019.2.0f1, 2019.1.14f1, 2019.1.0b2.
Working fine in:
2019.1.0b1 with Package Version 5.2.3-preview.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Component.TryGetComponent[T] (T& component) (at <881f56cb7996431bbecda1740f3e7a98>:0)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.get_legacyLight () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:1443)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.get_type () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs:232)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.UpdateBounds () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:2421)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize () (at Library/PackageCache/com.unity.render-pipelines.high-definition@7.2.1/Runtime/Lighting/Light/HDAdditionalLightData.Migration.cs:159)
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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note (fix version 9.0.0):
Verified during a pair-up call. All good ✔
Fixed in https://github.com/Unity-Technologies/ScriptableRenderPipeline/pull/6453