Editor crashes if i use ->ActorHasTag()

If your valid checks are all correct then that code should be fine. When we use the ActorHasTag, I don’t use the FName() cast. Try removing that. Is it definately that line that is the issue?