Skip to content

Commit

Permalink
report an error when path does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 8, 2021
1 parent 82ee3c0 commit 0798d4b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,12 @@ protected void populateChildListItems(String path, Boolean flat) {

Map<String, String> childMap = new HashMap<>();
Page rootPage = getPageManager().getPage(path);
childMap.put("path", rootPage.getPath());
if (rootPage != null) {
childMap.put("path", rootPage.getPath());
} else {
LOGGER.error("populateChildListItems: could not find path {}", path);
childMap.put("path", path);
}

if (flat) {
childMap.put("path.flat", "true");
Expand Down

0 comments on commit 0798d4b

Please sign in to comment.