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
- "GetOrAddComponent" method in "Unity.VisualScripting" returns "MissingComponentException" error when the "BoxCollider" Component doesn't exist
- Render Graphs Kebab Menu Buttons are missing padding and Highlight is uneven when hovered over
- Shader Keywords are not detected when defined in include files
- Right-clicking on Blackboard and Graph Inspector calls the contextual menu of the workspace
- [Android][Vulkan]Shader casting issue occurs when using Snapdragon devices with the Vulkan Graphics API
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