Object reference not set to an instance of an object - Please help

Hi, I’m following a tutorial series right now and i encounter one problem. Watching one of the videos i found an error that the guy that made the tutorial didn’t found, i tried to fix it but i couldn’t, please, if someone could help me figure it out i would be very grateful.

Here is the script

The error in particular is: NullReferenceException: Object reference not set to an instance of an object SaveManager.Load () (at Assets/Scripts/SaveManager.cs:74) SaveManager.Awake () (at Assets/Scripts/SaveManager.cs:27)

Thanks in advance :slight_smile:

If the program basically works, it means one script didn’t get initialized soon enough for a another script calling it. It’s basically harmless. If the error repeats into game play, then that’s different.

There is number of different thing what could go wrong. Any error however isn’t acceptable even if they doesn’t seem to cause any problems just now. Thing here, this is just a guess, is that o[3] is probably empty. You should break point this and see if something is null.