null != obj のみが null と判断されます。10 のトリックを使用すると、null ポインタ例外に別れを告げることができます。

NoSuchKey

おすすめ

転載: blog.csdn.net/zhangjiaming_zjm/article/details/131173857