Fixed prune null pointer