Change-Id: I5dba7506b83f145472f7327f92e47ffc17b74062
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
throw new IllegalArgumentException("It wasn't possible to get namespace for prefix " + prefix);
}
throw new IllegalArgumentException("It wasn't possible to get namespace for prefix " + prefix);
}
- Module module = schemaContext.findModuleByNamespaceAndRevision(namespace, null);
+ final Module module = schemaContext.findModuleByNamespaceAndRevision(namespace, null);
+ Preconditions.checkNotNull(module, "Unknown module: %s, cannot parse identity %s", namespace, xPathArgument);
return QName.create(module.getQNameModule(), identifier);
}
return QName.create(module.getQNameModule(), identifier);
}