r3002 - trunk/minisip/minisip/gui/gtkgui
mikma at minisip.org
mikma at minisip.org
Sun Dec 10 21:26:16 CET 2006
Author: mikma
Date: 2006-12-10 21:26:15 +0100 (Sun, 10 Dec 2006)
New Revision: 3002
Modified:
trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx
Log:
Fix crash when adding new identity
Modified: trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx
===================================================================
--- trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx 2006-12-10 15:33:15 UTC (rev 3001)
+++ trunk/minisip/minisip/gui/gtkgui/AccountsList.cxx 2006-12-10 20:26:15 UTC (rev 3002)
@@ -138,9 +138,11 @@
identity->getSipProxy()->setDefaultExpires( (*iter)[columns->registerExpires] );
MRef<SipIdentity *> oldId = (*iter)[columns->identity];
- // Copy PSK and SipSim from old identity
- identity->setPsk( oldId->getPsk() );
- identity->setSim( oldId->getSim() );
+ if( oldId ){
+ // Copy PSK and SipSim from old identity
+ identity->setPsk( oldId->getPsk() );
+ identity->setSim( oldId->getSim() );
+ }
config->identities.push_back( identity );
}
More information about the Minisip-devel
mailing list