Closed phil1618 closed 4 years ago
When a Sumehr is generated, the HCP hierarchy is resolved.
This hierarchy is built by running through the full HCP parent genealogy.
It happens that HCP have no parent. If so, the case where hcp.getParentId() == null is handle. But it also happens that hcp.getParentId() == "".
The purpose of this PR is to handle the later case and therefore to handle missing HCP Id queries throwing :
protected void assertDocIdHasValue(String docId) { Assert.hasText(docId, "document id cannot be empty"); }
When a Sumehr is generated, the HCP hierarchy is resolved.
This hierarchy is built by running through the full HCP parent genealogy.
It happens that HCP have no parent. If so, the case where hcp.getParentId() == null is handle. But it also happens that hcp.getParentId() == "".
The purpose of this PR is to handle the later case and therefore to handle missing HCP Id queries throwing :
protected void assertDocIdHasValue(String docId) { Assert.hasText(docId, "document id cannot be empty"); }