結果 : how to prevent null pointer exception in java