Please tell me What is wrong with this code

if your crash is access violation in the line currentComp->AddForceAtLocation() your variable is nullptr