fix #2030 fix npe
This commit is contained in:
parent
09d269dd45
commit
3d38639882
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue