Unable to read a memory

Declared a pointer Variable in header file and in begin play assigned the but when the function containing that variable called on game thread from other thread the compiler show unable to read the memory