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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment