結果 : java check for null and throw exception