Error when using AI (Just starting using it!)

So I’ve setup some AI for my enemy to randomly roam, and then to chase my character on sight until he loses him, I’m following a tutorial I found and it works great! but whenever I end play I get these errors that values are returning as none in the code for both of them. The errors slowly stack up the longer I play but it still works fine.
Just trying to figure out how to stamp out the errors.