你这root == nullptr, 还返回root.val不会报NullPointException么