Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多数の不要なオブジェクトを回避するために、Initialize クラスを作成しました。このオブジェクトを使用するために、次のようにインスタンスを作成しました。
public static Initialize INIT = new Initialize();
「Initialize.INIT」を使用するたびに、「Initialize」で NullPointer を取得します。
元のエラーである StackOverflow を解決し、NPE を回避するにはどうすればよいですか?