- if (strcmp (encodings[index].charset, encoding) == 0) {
- hildon_picker_button_set_active (HILDON_PICKER_BUTTON (button),
- index);
- break;
+ if (encodings[index].charset) {
+ if (strcmp (encodings[index].charset, encoding) == 0) {
+ hildon_picker_button_set_active (HILDON_PICKER_BUTTON (button),
+ index);
+ break;
+ }