Search Issue Tracker

By Design

Votes

0

Found in [Package]

netcode-gameobjects-1.9.1

netcode-gameobjects-2.0.0-exp

Issue ID

MTTB-264

Regression

No

"NullReferenceException" is thrown when accessing two-dimensional array which was transported via RPC

Package: Multiplayer Netcode for GameObjects

-

Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene” Scene
3. Enter Play Mode
4. Observe the Console

Expected result: No errors are logged in the Console
Actual result: “NullReferenceException” is logged in the Console

Reproducible with: 1.6.0 (2022.3.12f1), 1.9.1 (2021.3.38f1, 2022.3.27f1), 2.0.0-exp.2 (6000.0.0f1)

Reproducible on: Windows 11
Not reproducible on: No other environments tested

Note: On up to 1.7.1 version, while the exception is thrown, the contents of the array are also logged in the Console, while in newer versions, only the exception appears

  1. Resolution Note:

    We don't support multidimensional arrays since they can be expressed as a single dimensional array.

    See previous comments for workaround.
    Closing.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.