this was nullptr when trying to get coordinates

I see - can you show the code which sets the LineTraceComp variable?