diff --git a/src/osgPlugins/OpenFlight/expGeometryRecords.cpp b/src/osgPlugins/OpenFlight/expGeometryRecords.cpp index b153e5a7b..0efa055e5 100644 --- a/src/osgPlugins/OpenFlight/expGeometryRecords.cpp +++ b/src/osgPlugins/OpenFlight/expGeometryRecords.cpp @@ -889,6 +889,12 @@ FltExportVisitor::writeUVList( int numVerts, const osg::Geometry& geom, unsigned void FltExportVisitor::handleDrawArrays( const osg::DrawArrays* da, const osg::Geometry& geom, const osg::Geode& geode ) { + if (!da) + { + OSG_WARN<<"fltexp: Invalid DrawArray pointer"<getFirst(); GLsizei count = da->getCount(); GLenum mode = da->getMode(); @@ -956,6 +962,12 @@ FltExportVisitor::handleDrawArrays( const osg::DrawArrays* da, const osg::Geomet void FltExportVisitor::handleDrawArrayLengths( const osg::DrawArrayLengths* dal, const osg::Geometry& geom, const osg::Geode& geode ) { + if (!da;) + { + OSG_WARN<<"fltexp: Invalid DrawArrayLengths pointer"<getFirst(); GLenum mode = dal->getMode();