From 8ee069e649941921694a507982755f9e7755c39a Mon Sep 17 00:00:00 2001 From: ptv Date: Thu, 10 Nov 2005 12:58:02 +0000 Subject: [PATCH] add protection to avoid exception --- src/GLViewer/GLViewer_Viewer2d.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GLViewer/GLViewer_Viewer2d.cxx b/src/GLViewer/GLViewer_Viewer2d.cxx index 74114b3f4..c7a1d297d 100644 --- a/src/GLViewer/GLViewer_Viewer2d.cxx +++ b/src/GLViewer/GLViewer_Viewer2d.cxx @@ -230,6 +230,8 @@ void GLViewer_Viewer2d::activateDrawers( QValueList& theObject aDrawer = (*oit)->getDrawer(); } } + if ( !aDrawer ) + continue; aDrawer->addObject( (*oit) ); int aPriority = aDrawer->getPriority(); -- 2.39.2