issue #26: the reason was the dangling pointer?

This commit is contained in:
minjaesong
2019-06-23 02:20:01 +09:00
parent 41b68aa132
commit 44405111eb
4 changed files with 41 additions and 41 deletions

View File

@@ -211,6 +211,12 @@ object LightmapRenderer {
catch (e: UninitializedPropertyAccessException) {
return // quit prematurely
}
catch (e: NullPointerException) {
System.err.println("[LightmapRendererNew.fireRecalculateEvent] Attempted to refer destroyed unsafe array " +
"(world size: ${world.layerTerrain.width} x ${world.layerTerrain.height}; " +
"ptr: 0x${world.layerTerrain.getPtr().toString(16)})")
return
}
if (world.worldIndex == -1) return