diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/VolumetricLighting/DensityVolume.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/VolumetricLighting/DensityVolume.cs index 599aba5c11f..6f7f75102ce 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/VolumetricLighting/DensityVolume.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/VolumetricLighting/DensityVolume.cs @@ -172,7 +172,7 @@ internal void PrepareParameters(bool animate, float time) //Texture has been updated notify the manager bool updated = previousVolumeMask != parameters.volumeMask; #if UNITY_EDITOR - int newMaskHash = parameters.volumeMask.imageContentsHash.GetHashCode(); + int newMaskHash = parameters.volumeMask ? parameters.volumeMask.imageContentsHash.GetHashCode() : 0; updated |= newMaskHash != volumeMaskHash; #endif