From 96a0e186d535d761d6b24ef3e929a6710e4b0cea Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 10 Jul 2007 00:38:16 +0000 Subject: Fixed another Atom bug. --- src/atom.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/atom.h b/src/atom.h index ecda2a0..75ebf22 100644 --- a/src/atom.h +++ b/src/atom.h @@ -25,7 +25,8 @@ namespace Bu Atom( const MyType &oth ) : pData( NULL ) { - set( *oth.pData ); + if( oth.pData ) + set( *oth.pData ); } Atom( const t &oth ) : @@ -98,7 +99,8 @@ namespace Bu MyType &operator =( const MyType &oth ) { - set( *oth.pData ); + if( oth.pData ) + set( *oth.pData ); return *this; } -- cgit v1.2.3