From cb0f3f1d77a5b516b15aa51553e0bcf048ec3b5d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 30 Oct 2014 03:30:36 +0200 Subject: [PATCH] builtin/ground_plane_lighting: Catch common nullptr dereference --- builtin/ground_plane_lighting/ground_plane_lighting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/ground_plane_lighting/ground_plane_lighting.cpp b/builtin/ground_plane_lighting/ground_plane_lighting.cpp index 8509131..278e660 100644 --- a/builtin/ground_plane_lighting/ground_plane_lighting.cpp +++ b/builtin/ground_plane_lighting/ground_plane_lighting.cpp @@ -282,7 +282,7 @@ struct CInstance: public ground_plane_lighting::Instance voxelworld::access(m_server, [&](voxelworld::Interface *ivoxelworld) { voxelworld::Instance *world = - ivoxelworld->get_instance(m_scene_ref); + check(ivoxelworld->get_instance(m_scene_ref)); interface::VoxelRegistry *voxel_reg = world->get_voxel_reg(); //const auto &chunk_size_voxels = world->get_chunk_size_voxels(); pv::Region chunk_region =