- Joined
- Nov 17, 2014
- Messages
- 4,906
- Thread Author
- #1
TreeBot shouldn't throw an UnsupportedOperationException if a child of a branch is null, in trees of graph theory, not having a right or left subtree is legal too.
If failureTask() returns null as an example, it should be obvious that the respective branch simply has no failure task.
So if a child is null i would suppose it getting treated as an empty leaf instead.
If failureTask() returns null as an example, it should be obvious that the respective branch simply has no failure task.
So if a child is null i would suppose it getting treated as an empty leaf instead.