Revision 50097
Added by Alessia Bardi over 6 years ago
JRRClient.java | ||
---|---|---|
43 | 43 |
public void register(final String record) throws ParthenosPublisherException { |
44 | 44 |
try { |
45 | 45 |
if (StringUtils.isBlank(record)) { |
46 |
log.warn("Got empty record"); |
|
46 |
log.warn("Got empty record -- skipping"); |
|
47 |
return; |
|
47 | 48 |
} |
48 | 49 |
String objIdentifier = getObjIdentifier(record); |
49 | 50 |
if (StringUtils.isBlank(objIdentifier)) { |
50 | 51 |
log.warn("Got record with no objIdentifier -- skipping"); |
52 |
return; |
|
51 | 53 |
} |
52 | 54 |
String recordRDF = getRDFBlock(record); |
53 | 55 |
doRegister(recordRDF, objIdentifier); |
Also available in: Unified diff
Let's skip empty records