Loading shaders (for eg: through a niagara custom hlsl node include) with incorrect name, can result in the LocalFileContents to be a nullptr. It’s therefore unsafe to dereference it.
btw, I also picked up on another issue, but didn’t spend time trying to get to the bottom of it.
If a niagara custom hlsl node, includes a .ush file, and that .ush file, includes another header - which doesn’t exist (ie: typo or genuinely isn’t there), the Niagara system gets stuck “compiling”, and never completes. It’s actually a soft lock, as you can’t save the NS without finishing compilation, and nothing tells you it’s caused by the invalid header include.