In Fire you are spawning the projectile via the spawn actor function that takes in a class. In your case Projectile class. It is probably not set.
Before calling the spawn function check against a nullptr
if(ProjectileClass != nullptr){
// spawn projectile
}