[C++] Variable gets set to null if replicated to owning client using a function

Hi,

I want to replicate a Variable from the SERVER to the CLIENT. I am using a replicated function for that using owning client. Now the problem is that the variable gets set to null on the owning client.

This is where i create and send the object:

This is the replicated function in the header:

And this is what i do in the replicated function: