o3de-multiplayersample
o3de-multiplayersample copied to clipboard
NetworkSimplePlayerCameraComponent Crashes if No NetworkAiComponent
Describe the bug NetworkSimplePlayerCameraComponent will crash OnActivate if no NetworkAiComponent exists.
Steps to reproduce N/A. Just look at the code: m_aiEnabled = FindComponent<NetworkAiComponent>()->GetEnabled();
Expected behavior If NetworkSimplePlayerCameraComponent requires NetworkAiComponent, then make it a dependency in the autocomponent. Otherwise add null checks safety nets.
Found in Branch July 23, 2022 development
Triaged agreed that we should not have this requirement and have a null check