Search Issue Tracker

Active

Votes

0

Found in

1.8.28

Issue ID

UUM-137909

Regression

No

NullReferenceException is thrown when branching on absent optional component availability via GetNativeArray(...).Length != 0 in Burst-compiled IJobChunk with safety checks disabled

Burst

-

Reproduction steps:
1. Open the attached project “IN-137214“
2. Open the “SampleScene” scene
3. In the top menu set Jobs > Burst > Safety Checks > Off
4. Enter Play Mode
5. Observe the Console

Actual result: System.NullReferenceException is thrown from the Burst-compiled job and the logged result is 0
Expected result: The job completes with Repro result = -1

Reproducible with: 1.8.17 (6000.0.0b11), 1.8.28 (2022.3.60f1, 6000.0.0b11, 6000.0.71f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1)

Reproduced on: Windows 11 Enterprise
Not reproduced on: No other environment tested

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.