Skip to content

Commit

Permalink
#16671 fixes npe
Browse files Browse the repository at this point in the history
  • Loading branch information
wezell committed Jun 6, 2019
1 parent 9e30c27 commit 796195c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -182,7 +182,7 @@ private Contentlet getContentlet(
final String query = this.buildContentQuery(matches, structure, hostField, context);
final List<ContentletSearch> contentletSearches =
this.contentletAPI.searchIndex(query, 2, 0,
hostField.isRequired() ? "conhost, modDate" : "modDate",
(hostField!=null && hostField.isRequired()) ? "conhost, modDate" : "modDate",
this.wuserAPI.getSystemUser(), true);

if (!contentletSearches.isEmpty()) {
Expand Down

0 comments on commit 796195c

Please sign in to comment.