isFullscreen is public API of XWalkView, so here is able to call it. Just check whether XWalkView is null before calling it.