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

Package: Scriptable Render Pipeline HD

-

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)

Add comment

Log in to post comment