DidReloadScripts null reference

Avatar
  • updated
  • Fixed

This is not constant but does occur sometimes on restarting Unity -- 

Exception thrown while invoking [DidReloadScripts] method 'Shapes.ShapesImportState:CheckRenderPipeline ()' : NullReferenceException: Object reference not set to an instance of an object

Shapes.ShapesImportState.CheckRenderPipeline () (at Assets/Asset Packs/Shapes/Scripts/Editor/Utils/ShapesImportState.cs:22)

Reporting a bug? please specify Unity version:
2019.4.9f1
Reporting a bug? please specify Shapes version:
2.2.0
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Fixed

I don't really know why this happens, but it should be harmless assuming it succeeded at least once in your project!

I've added a warning now, saying it will retry on the next script recompile

Avatar
Freya Holmér creator
  • Answer
  • Fixed

I don't really know why this happens, but it should be harmless assuming it succeeded at least once in your project!

I've added a warning now, saying it will retry on the next script recompile

Avatar
andrew trese

Thanks. I do agree that it seemed harmless. Just diligently reporting Errors :D