Skip to content

Commit

Permalink
JENKINS-40979 NPE where child can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
James William Dumay committed Apr 24, 2017
1 parent a9fd82e commit 8b7e561
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ public TreePruner accept(Object node, Property prop) {

// for merge properties, the current restrictions on the property names should
// still apply to the child TreePruner
if (prop.merge)
if (prop.merge && child != null)
child = new FilteringTreePruner(predicate,child);

return child;
Expand Down

0 comments on commit 8b7e561

Please sign in to comment.