Re: bookmarkexample
From: Vincent Thomasset <vincent.thomasset@xxxxxxxxx>
Date: Fri, 24 Aug 2007 11:02:51 +0200 (CEST)
Hi,

The bug is fixed, attached the patch for 0.9.

Cheers,
Vincent
Index: src/bookmarkstorage.cpp
===================================================================
--- src/bookmarkstorage.cpp     (révision 2924)
+++ src/bookmarkstorage.cpp     (copie de travail)
@@ -100,8 +100,14 @@
         const std::string& join = (*it)->findAttribute( "autojoin" );
         if( ( join == "true" ) || ( join == "1" ) )
           autojoin = true;
-        const std::string& nick = (*it)->findChild( "nick" )->cdata();
-        const std::string& pwd = (*it)->findChild( "password" )->cdata();
+        std::string nick;
+        const Tag* nickname = (*it)->findChild( "nick" );
+        if( nickname )
+          nick = nickname->cdata();
+        std::string pwd;
+        const Tag* password = (*it)->findChild( "password" );
+        if( password )
+          pwd = password->cdata();
 
         if( !jid.empty() && !name.empty() )
         {