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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (2022.1.X):
Backing out the change as it caused other issues, upon retesting the issue no longer reproduces.