Check if you have Pause on Error checked in your console window.
Make sure your log console selector buttons are enabled. See this graphic:
and most likely you’ll notice this…
How to fix a NullReferenceException error
https://forum.unity.com/threads/how-to-fix-a-nullreferenceexception-error.1230297/
Three steps to success:
- Identify what is null ← any other action taken before this step is WASTED TIME
- Identify why it is null
- Fix that