forked from D-Net/dnet-hadoop
init the empty list for author pids mapped from OAF
This commit is contained in:
parent
82b615ab33
commit
7838f2c63f
|
@ -42,8 +42,8 @@ public class OafToOafMapper extends AbstractMdRecordToOafMapper {
|
|||
final String pid = e.attributeValue("nameIdentifier");
|
||||
final String pidType = e.attributeValue("nameIdentifierScheme");
|
||||
|
||||
if (StringUtils.isNotBlank(pid) && StringUtils.isNotBlank(pidType)) {
|
||||
author.setPid(new ArrayList<>());
|
||||
if (StringUtils.isNotBlank(pid) && StringUtils.isNotBlank(pidType)) {
|
||||
author
|
||||
.getPid()
|
||||
.add(structuredProperty(pid, qualifier(pidType, pidType, DNET_PID_TYPES, DNET_PID_TYPES), info));
|
||||
|
|
Loading…
Reference in New Issue