return NULL when a tree is NULL