Update BinaryTreeNextRightChild.java

fixed null pointer exception when some leaf nodes are missing