Search Issue Tracker
Not Reproducible
Votes
0
Found in
2020.3
2021.1
2021.1.3f1
2021.2
Issue ID
1340462
Regression
No
Unity throws a NullReferenceException when reimporting an asset and having the Editor Window selected
How to reproduce:
1. Open the attached project "Playables_don_t_initialise_properly_on_startup_in_Edit_Mode.zip"
2. Open 'Sequence Coroutine' Scene
3. Select DefaultHumanoid in the Scene Hierarchy
4. In the Inspector expand the Animations array
5. Click the Eye icon next to 'Humanoid-Walk'
6. In Project View right-click 'Sequence Coroutine' script
7. Click Reimport
8. Quickly click on the Editor
Expected result: No errors are printed to the Console
Actual result: A NullReferenceException is printed to the Console
Reproducible with: 2020.3.11f1, 2021.1.10f1, 2021.2.0a19
Could not test with: 2018.4.34f1, 2019.4.28f1 (due to errors mentioned in case 1339675)
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
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Resolution Note (2022.1.X):
Backing out the change as it caused other issues, upon retesting the issue no longer reproduces.