1 diff --git a/ui/nnmCanvas.cpp b/ui/nnmCanvas.cpp
2 index a548ddf..3b8e7d4 100755
7 nnmCanvas::nnmCanvas( QWidget *parent, int timeoutParam, int initID,
8 const char *name, WFlags f )
9 - : QWidget( parent, name, f )
10 + : QWidget( parent, name, f ), timer(0)
12 setFixedSize( NnmCANVAS_DISPLAY_SIZE, NnmCANVAS_DISPLAY_SIZE );
14 @@ -149,7 +149,7 @@ void nnmCanvas::resizeEvent( QResizeEvent *event )
16 void nnmCanvas::init( void )
18 - if ( timeoutMsec > 0 && timer->isActive() ) {
19 + if ( timeoutMsec > 0 && timer && timer->isActive() ) {