Revision 49545
Added by Claudio Atzori over 6 years ago
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
don't fail in case of missing context ids