Search Issue Tracker

Duplicate

Votes

2

Found in [Package]

0.13.0-preview.24

Issue ID

1261962

Regression

Yes

NullReferenceException when passing a NativeArray<Entity> to a struct

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open user attached project "AStarErrorReport.zip"
2. Open "AStarErrorTest" Scene
3. Enter Play Mode and observe the console error

Expected result: NativeArray is passed to a struct
Actual result: NativeArray is not passed to a struct and an error appears in the console: "NullReferenceException: Object reference not set to an instance of an object" or "IndexOutOfRangeException: Index 0 is out of range of '0' Length."

Reproducible with: 0.10.0-preview.6, 0.11.1-preview.4, 0.13.0-preview.24 (2019.4.3f1, 2019.4.5f1, 2020.1.0f1, 2020.2.0a19)
Not reproducible with: 0.10.0-preview.6, 0.11.1-preview.4 (2019.4.2f1)
Couldn't test with: 2018.4.25f1 (console errors)

Comments (1)

  1. davenirline

    Jul 22, 2020 09:32

    We can't upgrade to new versions because of this issue.

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.