-
Notifications
You must be signed in to change notification settings - Fork 456
Closed
Labels
stat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:bugBug ReportBug Reporttype:featureNew feature, request or improvementNew feature, request or improvementtype:feature-2.xNew NGO 2.0.0 feature, request or improvementNew NGO 2.0.0 feature, request or improvement
Description
Description
When using a NetworkList
with no NetworkManager
in scene (in my solo mode), operations on the list (add, insert, remove, clear...) throws an NullReferenceException.
This is because of the use of m_NetworkBehaviour
that hasn't been initialized.
NetworkVariable<T>
doesn't suffer from this behaviour because a check on m_NetworkBehaviour is made.
Actual Outcome
A null reference exception is thrown an the operation is not done.
Expected Outcome
The operation is done.
Environment
- OS: Windows 11
- Unity Version: 2021.3.22f1
- Netcode Version: develop (and all previous versions)
- Netcode Commit: dfd08d8
Metadata
Metadata
Assignees
Labels
stat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:bugBug ReportBug Reporttype:featureNew feature, request or improvementNew feature, request or improvementtype:feature-2.xNew NGO 2.0.0 feature, request or improvementNew NGO 2.0.0 feature, request or improvement