Same pointer is valid in BP but null in C++

Okay as expected, it does not work. Are you sure you did read the question?