I’m putting together a system for hotkeys but I’ve ran into an access none error, the weird part is that it’s happening inside of an IsValid node so I’m not sure what’s happening or why.
I think it has something to do with the fact that I’m finding an item from a Map but I’m not too sure, could someone explain why the error is happening and possible steps to fix it?
FIND returns null and you access that return value, hence the error. You probably think you are checking the return value but you don’t, you are checking ItemInSlot which already requires you to access the returned null reference.
no, the result of FIND is never checked. If that result is null (which it probably is here) you try to access the member ItemInSlot of a nullptr object. There should be an IsValid node that directly checks the output of the FIND node, and only after that it is safe to access ItemInSlot.
GRIM YA is correct, when I changed the IsValid node to check the result of the find node it was in fact returning null, the code works without any errors now so I can begin to figure out what’s going wrong.