o3de-multiplayersample icon indicating copy to clipboard operation
o3de-multiplayersample copied to clipboard

NetworkSimplePlayerCameraComponent Crashes if No NetworkAiComponent

Open AMZN-Gene opened this issue 2 years ago • 1 comments

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

AMZN-Gene avatar Jul 24 '22 02:07 AMZN-Gene

Triaged agreed that we should not have this requirement and have a null check

lmbr-pip avatar Jul 28 '22 17:07 lmbr-pip