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
- “Handles.Repaint called outside an editor OnGUI" error is thrown in the Console when creating a new Tile Palette from the Tile Palette Overlay in Scene view
- UI Shader Graph’s Main Preview has a right-click context menu with different preview options which do not work for a UI Shader Graph and does nothing when clicked
- Shader Graph window icon is blurry and low quality when the Shader Graph is created using the Universal 2D template
- “Export HDRP Sky to Image” command error message does not indicate that Game view must be visible
- Adaptive Performance Settings Framerate field doesn't display the "supported without VSync" warning, when the field is collapsed in Build Profiles
Add comment