Search Issue Tracker
Fixed in 7.2.0
Votes
0
Found in [Package]
7.1.7, 7.1.5
Issue ID
1211730
Regression
Yes
[HDRP] NullReferenceException throw on adding the "Planer Reflection Probe" component when Render Pipeline Asset is none
Adding "Planer Reflection Probe" component causes the editor to throw NullReferenceException continuously when Render Pipeline Asset is none from the Project Settings, refer attached video.
Steps to repro:
1. Create a new project
2. Windows > Package Manager > High Definition RP > Install
3. Hierarchy > Create Empty GameObject
4. Add "Planner reflection Probe" component in the Inspector
Actual Result:
NullReferenceException is thrown on adding the "Planer Reflection Probe" component when Render Pipeline Asset is none.
Expected Result:
"Planer Reflection Probe" component is added without any errors.
Tested with Unity versions:
2020.1.0a19, 2019.3.0f6, 2019.3.0b4
Package found version: 7.1.7, 7.1.5
Package working fine version: 7.1.2
Environment:
Windows 10 & macOS 10.14
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.HighDefinition.HDEditorUtils.DrawLightLayerMask (UnityEngine.Rect rect, System.Int32 value, UnityEngine.GUIContent label) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.7/editor/renderpipeline/hdeditorutils.cs:238)
UnityEditor.Rendering.HighDefinition.HDEditorUtils.DrawLightLayerMask_Internal (UnityEngine.Rect rect, UnityEngine.GUIContent label, UnityEditor.SerializedProperty property) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.7/editor/renderpipeline/hdeditorutils.cs:224)
UnityEditor.Rendering.HighDefinition.LightLayerEnumPropertyDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.7/editor/core/lighting/lightlayerenumpropertydrawer.cs:16)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <b9bb103d86cd4249b6a1c8b6aa2850c7>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <b9bb103d86cd4249b6a1c8b6aa2850c7>:0)
UnityEditor.GenericInspector.OnOptimizedInspectorGUI (UnityEngine.Rect contentRect) (at <b9bb103d86cd4249b6a1c8b6aa2850c7>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <b9bb103d86cd4249b6a1c8b6aa2850c7>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
Add comment