Disable NullReferenceException In Console

I want to know how to remove this in script for C#, It is there because my script is set-up that way. How to make it where the console does not add this error.

just add null check to your script

How do you do that, keep in mind, the null should be there, I just don’t want the console to have it there

well that line fails anyway because of that error so just double click the console error and it will take you to the exact line where the error is, then just add an if (object != null) above that and you’re good to go.