Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2019.3.0a2
Issue ID
1153082
Regression
Yes
[Scripting] "ArgumentException: Object at index 0 is null" exception is thrown on deleting the script from Visual Studio
"ArgumentException: Object at index 0 is null" exception is thrown on deleting the script from Visual Studio.
Steps to repro:
1. Open the attached project.
2. Assets Menu > Open C# Project.
3. In Visual Studio, delete Test1.cs script from the Solution Explorer window.
4. Focus back to Unity Editor.
Actual Result:
Script deleted with an exception in the Unity Console.
Expected Result:
The script deletes.
Reproducible with:
2019.3.0a7, 2019.3.0a2
Working Fine with:
2019.3.0a1, 2019.2.0b2.
Environment:
Only on Windows
Stack trace:
ArgumentException: Object at index 0 is null
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at C:/buildslave/unity/build/Editor/Mono/SerializedObject.bindings.cs:39)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:553)
UnityEditor.Editor.get_serializedObject () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:452)
UnityEditor.Experimental.AssetImporters.AssetImporterEditor.FixInspectorCache () (at C:/buildslave/unity/build/Modules/AssetPipelineEditor/ImportSettings/AssetImporterEditor.cs:203)
UnityEditor.AssemblyReloadEvents.OnAfterAssemblyReload () (at C:/buildslave/unity/build/Editor/Mono/AssemblyReloadEvents.cs:22)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment