From 7ed756810f304e80b9ea11ba4207a76e2dc9fe61 Mon Sep 17 00:00:00 2001 From: ehouse Date: Wed, 19 Jan 2005 15:08:57 +0000 Subject: [PATCH] don't try to copy null string --- symbian/src/symgamdl.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/symbian/src/symgamdl.cpp b/symbian/src/symgamdl.cpp index f0dad66b5..fcfd0d1c1 100644 --- a/symbian/src/symgamdl.cpp +++ b/symbian/src/symgamdl.cpp @@ -38,9 +38,13 @@ TGameInfoBuf::TGameInfoBuf( const CurGameInfo* aGi, for ( i = 0; i < MAX_NUM_PLAYERS; ++i ) { iIsRobot[i] = aGi->players[i].isRobot; - - TBuf8<32> tmp( aGi->players[i].name ); - iPlayerNames[i].Copy( tmp ); + if ( aGi->players[i].name != NULL ) { + XP_LOGF( "name[%d] = %s", i, aGi->players[i].name ); + TBuf8<32> tmp( aGi->players[i].name ); + iPlayerNames[i].Copy( tmp ); + } else { + iPlayerNames[i].Copy( _L("") ); + } } iNPlayers = aGi->nPlayers;