Skip to content

Commit 5cecf4e

Browse files
authored
Fixed null ref (#6297)
1 parent e5a914f commit 5cecf4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.render-pipelines.core/Editor/Volume/VolumeEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void RefreshEffectListEditor(VolumeProfile asset)
7171
{
7272
m_ComponentList.Clear();
7373

74-
asset.Sanitize();
74+
asset?.Sanitize();
7575

7676
if (asset != null)
7777
m_ComponentList.Init(asset, new SerializedObject(asset));

0 commit comments

Comments
 (0)