UniversalAdditionalCameraData.volumeStack returns null on Base camera

Hello chat!
I have been trying to work my way around creating an update function for my custom volumeComponent.
When I was trying to access the volumeStack from the main camera (which is a base camera), I get a null object. I assume this is not expected behaviour as it should (afaik) return the stackVolume object.
(Ive seen some people use VolumeManager.instance.stack, however this is not viable for me as I use multiple cameras in-game). Should I report it as a bug or am I doing something wrong?

var camera = Camera.main;
var stack = camera.GetUniversalAdditionalCameraData().volumeStack;

Thanks for any replies in advance, tested in 2023.1.11 and 2022.3.0. Sample project in attachment:

9266841–1297035–VolumeStack.zip (77.6 KB)
9266841–1297035–VolumeStack.zip (77.6 KB)

The API is also referenced on the URP docs as well:
https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@16.0/api/UnityEngine.Rendering.Universal.UniversalAdditionalCameraData.volumeStack.html

I have managed to hack around this issue by checking which camera is currently rendering a frame and doing my operations during that time. However, it is an extremely inelegant solution which forces you to do unnecessary comparisons every frame + it also registers Unity Editor Material/Models preview in Inspector as a new camera, which leads to visual glitches.

I’m coming across this same issue in 2022.3.27f1. Trying to access the stack via the camera returns null. The VolumeManager instance sort of works but it looks like the scene view fights with the camera as to which stack is being used. @Gasimo Would you be willing to share your, “extremely inelegant solution”. facepalm

This returns null:

var camera = Camera.main;
var stack = camera.GetComponent<UnityEngine.Rendering.Universal.UniversalAdditionalCameraData>().volumeStack;