Search Issue Tracker

Fixed in Unity 2017.2

Votes

1

Found in

2017.1.0f3

Issue ID

931213

Regression

Yes

NullReferenceException is thrown when the Dispose() method is inside the Using() block

Scripting

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Workaround is possible

Steps to reproduce:
1. Open the attached project
3. Open the GamePlay scene
3. Play the scene
4. Observe the error in Console Window:
NullReferenceException: UnityWebRequest has already been destroyed

Actual results: Error is thrown
Expected results: Stream should be close normally

Reproduced with: 2017.1.0f3, 2017.2.0b3
Not reproduced with: 5.5.4p4, 5.6.2p2

Fixed in:
2017.2.0b6

All about bugs

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