Project

General

Profile

« Previous | Next » 

Revision 49545

don't fail in case of missing context ids

View differences:

modules/dnet-mapreduce-jobs/branches/prod/src/main/java/eu/dnetlib/data/mapreduce/util/XmlRecordFactory.java
547 547

  
548 548
					final ContextDef def = contextMapper.get(id);
549 549

  
550
					if (def == null) throw new IllegalStateException(String.format("cannot find context for id '%s'", id));
550
					if (def == null) {
551
						continue;
552
						// throw new IllegalStateException(String.format("cannot find context for id '%s'", id));
553
					}
551 554

  
552 555
					if (def.getName().equals("context")) {
553 556
						final String xpath = "//context/@id='" + def.getId() + "'";

Also available in: Unified diff