diff --git a/src/osgGA/SimpleViewer.cpp b/src/osgGA/SimpleViewer.cpp index f633adb03..9ed345648 100644 --- a/src/osgGA/SimpleViewer.cpp +++ b/src/osgGA/SimpleViewer.cpp @@ -116,7 +116,11 @@ void SimpleViewer::init() { osg::ref_ptr initEvent = _eventQueue->createEvent(); initEvent->setEventType(osgGA::GUIEventAdapter::FRAME); - _cameraManipulator->init(*initEvent, *this); + + if (_cameraManipulator.valid()) + { + _cameraManipulator->init(*initEvent, *this); + } } void SimpleViewer::frame()