結果 : best way to handle null pointer exception in java