Android - Prevent crash when setting the url property to _webSurface.

This commit is contained in:
Cristian Luis Duarte 2018-03-16 12:03:26 -03:00
parent 7789697243
commit ee6c65c1ac

View file

@ -174,7 +174,9 @@ void WebEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scene
}
if (urlChanged) {
_webSurface->getRootItem()->setProperty("url", _lastSourceUrl);
if (_webSurface->getRootItem()) {
_webSurface->getRootItem()->setProperty("url", _lastSourceUrl);
}
}
if (_contextPosition != entity->getWorldPosition()) {