From de0768af8003e88ce3b993f8cef12e24b7ebd9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Mon, 6 Jul 2015 20:51:13 +0200 Subject: [PATCH] fix crash on datum point preselect It is unclear why the coordinates are NULL. This fix prevents the crash but does not fix the reason why this unnormality occurs. --- src/Mod/Part/Gui/SoBrepPointSet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Part/Gui/SoBrepPointSet.cpp b/src/Mod/Part/Gui/SoBrepPointSet.cpp index 921f6aa86..102b1e1bb 100644 --- a/src/Mod/Part/Gui/SoBrepPointSet.cpp +++ b/src/Mod/Part/Gui/SoBrepPointSet.cpp @@ -112,6 +112,8 @@ void SoBrepPointSet::renderShape(const SoGLCoordinateElement * const coords, int numindices) { const SbVec3f * coords3d = coords->getArrayPtr3(); + if(coords3d == nullptr) + return; int previ; const int32_t *end = cindices + numindices;