gtk_entry_set_text (GTK_ENTRY (txtParent), ck->path);
gtk_entry_set_text (GTK_ENTRY (txtName), ck->key);
gtk_entry_set_text (GTK_ENTRY (txtValue), ck->value);
- gtk_text_buffer_set_text (buffer, ck->description, strlen (ck->description));
+ if (ck != NULL)
+ {
+ gtk_text_buffer_set_text (buffer, ck->description, -1);
+ }
+ else
+ {
+ gtk_text_buffer_set_text (buffer, "", -1);
+ }
if (gtk_dialog_run (GTK_DIALOG (diag)) == GTK_RESPONSE_OK)
{