Search Issue Tracker
Fixed in 2018.1.X
Fixed in 2017.1.X, 2017.2.X, 2017.3.X
Votes
0
Found in
2017.1.0p5
Issue ID
949418
Regression
Yes
WWW.responseHeaders causes NullReferenceException after reading a local file
Steps to reproduce:
1.Open attached “wwwheaders.zip" Unity project
2.Open “main” scene
3.Enter Play mode
4.Press “Load Local File” button in Game view
Expected results:
WWW.responseHeaders are printed in Console
Actual results:
NullReferenceException error appears
Reproduced in: 2017.3.0b5, 2017.2.0f3, 2017.1.2p1, 2017.1.0b1
Didn’t reproduce in: 2017.1.0a6
Regression introduced in: 2017.1.0b1
Error:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.WWW.get_responseHeaders () (at /Users/builduser/buildslave/unity/build/Runtime/WebRequestWWW/UWRWWW.cs:158)
TestLocalLoading+<LoadLocalFile>c__Iterator0.MoveNext () (at Assets/Scripts/TestLocalLoading.cs:20)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
----------------
Fixed in: 2017.1.2p4, 2017.2.0p3, 2017.3.0b10
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SerializedPropertyChangeEvent is invoked when initially binding PropertyFields in custom Editor
- UI Panel is not visible when HDR and STP filter are enabled
- Crash on GfxDeviceD3D11Base::DrawBuffersIndirect when opening a specific project
- OnTriggerExit2D is called in Play mode when undoing component adding
- Builds fail with "Execution failed for task ':launcher:checkReleaseDuplicateClasses'" error when the newer version of the In-App Purchasing package is installed on a specific project
Add comment