GetWorld() returns null in runtime but is ok in editor

Hi
Code looks like this


I use it to get landscapesProxies and then calculate size of the world. In editor everything works fine, I can calculate measurements and then do stuff, but when i click play i get nullptr.