Fix null ptr.
authorMatch Grun <match@dimensional.com>
Sat, 28 Jun 2003 19:25:31 +0000 (19:25 +0000)
committerMatch Grun <match@dimensional.com>
Sat, 28 Jun 2003 19:25:31 +0000 (19:25 +0000)
ChangeLog.claws
configure.ac
src/addressbook.c

index 92ed9b1..357ab11 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-28 [match]     0.9.0claws68
+
+       * src/addressbook.c
+               fix null ptr.
+
 2003-06-27 [paul]      0.9.0claws67
 
        * sync with 0.9.2cvs7
index 73b93d3..80cfe8e 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws67
+EXTRA_VERSION=claws68
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 1bb4b83..dc26364 100644 (file)
@@ -3156,8 +3156,10 @@ static GtkCTreeNode *addressbook_node_add_folder(
                newNode = gtk_ctree_insert_node( ctree, node, NULL, name, FOLDER_SPACING,
                                atci->iconXpm, atci->maskXpm, atci->iconXpm, atci->maskXpm,
                                atci->treeLeaf, atci->treeExpand );
-               gtk_ctree_node_set_row_data_full( ctree, newNode, adapter,
-                       addressbook_free_treenode );
+               if( newNode ) {
+                       gtk_ctree_node_set_row_data_full( ctree, newNode, adapter,
+                               addressbook_free_treenode );
+               }
        }
 
        listItems = itemFolder->listFolder;