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,8 +174,10 @@ void WebEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scene
}
if (urlChanged) {
if (_webSurface->getRootItem()) {
_webSurface->getRootItem()->setProperty("url", _lastSourceUrl);
}
}
if (_contextPosition != entity->getWorldPosition()) {
// update globalPosition