Please help with Errors

Hello, I’m creating a menu for the game, and I don’t know why, but after launching the test, the game crashes errors:


The menu works fine, but only after turning it off, it crashes errors like the screenshot.
Here is a Blueprint screenshot where it crashes errors

Someone help? please, i tried in many ways but still doesn’t work.

The answer to this question is always the same. Click the last highlighted word on the right hand end of the error message, it will take you to the error node. That node is getting a reference which has not been initialized.

In this case, you main menu variable is not set to anything… The standard way to check would be like this:

Screenshot_1.jpg

Clockwork is correct. Your “Main Menu” variable is empty for the Is Valid Path. You need to SET the main menu var on the top path with the main menu pin from the GET (is valid, is not valid, main menu ) node.

I noticed an error in “is valid” but after correcting it still comes out the same error. Something must not be playing in “Add to viewport” because I have a bug all the time.

Your flow logic is broken. You are not passing the VALID main menu to view port. You are only ever attempting to pass the newly created IN VALID variant.

e.g. if is valid is true, then the “main menu” piped to view port is empty/null, hence the accessed none error.

https://i.imgur.com/57RR1xF.jpg

I did EXACTLY the same as you above, except that the error still occurs, I even marked where the error indicates:


The error still redirects to the “Add to viewport” block and I don’t know what’s going on. I have tried in many ways and I don’t know what it may be related to

After “Is Valid” and Is Not Valid" add a print string … Valid/Not Valid. Figure out which pin is failing.

Something is not working in IsValid
in “Is Not Valid” print string works
in “Is Valid” the print string does not display the string

I think I fixed something … I forgot to add that the game project is a multiplayer heroShooter so it was run on “play as client” and now it was run on “Play as listen Server” and everything works. The question is whether if I switch to a normal server, the game will not throw errors?