agent: Don't look for NULL record type on the NDEF agent hash
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 31 Oct 2012 09:39:18 +0000 (10:39 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 23:20:29 +0000 (00:20 +0100)
src/agent.c

index 1859815..7063d58 100644 (file)
@@ -153,6 +153,9 @@ void __near_agent_ndef_parse_records(GList *records)
                record = list->data;
                type  = __near_ndef_record_get_type(record);
 
+               if (type == NULL)
+                       continue;
+
                DBG("Looking for type %s", type);
 
                agent = g_hash_table_lookup(ndef_app_hash, type);