Tree에서 Null 처리

널 에러 나는 부분 처리

Signed-off-by: karuana <mse201@gmail.com>