Garbage Collection and nullptr

Hi.
If the pointer is nullptr then GC will work correctly?

I created a pointer in a .h file

UPROPERTY (Transient)
ULineOfSightComponent * ComponentForClone;

In the constructor, I am setting the pointer to nullptr.

ComponentForClone= nullptr;

In most cases it is nullptr and does not change on most actors then there will be no problem with Garbage Collection?
Or should the pointer not be nullptr for GC to work correctly?

Hello! Garbage collector is checking objects by just counting pointers that point to these objects. If you have null pointer, then it doesnt point to any object and so it is not used by Garbage collector at all.