結果 : how to check for null pointer exception in java