This commit is contained in:
Shinsuke Sugaya 2019-02-27 06:31:24 +09:00
parent 09d269dd45
commit 3d38639882

View file

@ -174,7 +174,7 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
default:
final Boolean isPruned = fieldPrunedRuleMap.get(entry.getKey());
Node value = getXPathAPI().selectSingleNode(document, entry.getValue());
if (isPruned != null && isPruned.booleanValue()) {
if (value != null && isPruned != null && isPruned.booleanValue()) {
value = pruneNode(value);
}
putResultDataBody(dataMap, entry.getKey(), value != null ? value.getTextContent() : null);