Search Issue Tracker
Fixed
Votes
0
Found in [Package]
0.2.0-preview.18, 0.5.0-preview.17
Issue ID
1205608
Regression
No
[ECS] Uninformative "ArgumentNullException" error is thrown when using ToComponentDataArray on query that is missing a component
How to reproduce:
1. Open the attached project ("case_1205608-ToComponentDataArray.zip")
2. Open Test Runner
3. Run the tests ("E7.Onmaku.SimfileEditor.Tests.Internal.dll > InternalSimfileEditorTests > NoteOperationProcessedStateTest > PutAndReverse")
4. Inspect the console
Expected results: Error messages show that requested components are not included in the query
Actual results: "ArgumentNullException: Value cannot be null." errors are thrown
Reproducible with: 2019.2.19f1, 2019.3.0f5, 2020.1.0a20
Couldn't test with: 2017.4 (package is not supported), 2018.4 (package errors after downgrading the project)
Reproducible with package versions: 0.2.0-preview.18, 0.5.0-preview.17
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Resolution Note:
Fixed a long time ago. The exception thrown is InvalidOperationException, and specifically mentions the component type missing from the query as the cause of the error.