Issue 10621

registry-service: rare case where agent is missing agent type causes NPE

10621
Reporter: kbraak
Assignee: kbraak
Type: Bug
Summary: registry-service: rare case where agent is missing agent type causes NPE
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-01-10 14:05:33.636
Updated: 2013-12-16 17:50:46.222
Resolved: 2012-01-10 17:53:32.12
        
Description: Following creation of new dataset-aware registry, there have been found rare cases where the non-deleted agent has null agent type:

mysql> select id, agent_type_id, deleted from agent where id = 1994;
+------+---------------+---------+
| id   | agent_type_id | deleted |
+------+---------------+---------+
| 1994 |          NULL | NULL    |
+------+---------------+---------+
1 row in set (0.00 sec)

In the factories, this causes a NPE.]]>
    


Author: kbraak@gbif.org
Comment: Fixed.
Created: 2012-01-10 17:53:32.145
Updated: 2012-01-10 17:53:32.145