Change-Id: Iceeaa94a80543570a720281ac39d3ccd9ac924fa
Reviewed-on: https://code.wireshark.org/review/4699
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
guint i;
gchar* attribute_type;
- if (attribute_types_hash) {
+ if (attribute_types_hash && hf) {
guint hf_size = g_hash_table_size (attribute_types_hash);
/* Unregister all fields */
for (i = 0; i < hf_size; i++) {
guint i;
gchar* attribute_type;
- if (attribute_types_hash) {
+ if (attribute_types_hash && hf) {
guint hf_size = g_hash_table_size (attribute_types_hash);
/* Unregister all fields */
for (i = 0; i < hf_size; i++) {