Java.lang.NullPointerException is thrown
Class.forName("Essence.Users"); Users.AllUsers.printer(); // Выбрасывается в этой строке.
Here is the Users class.
public class Users { public static Users AllUsers; private ArrayList <UserThread> Users; public void printer() { System.out.print("xxxxxx"); } private Users() { System.out.print("Обьект создался."); Users = new ArrayList <UserThread>(); } static { Users AllUsers = new Users(); } }
static
in the standard, but, in general, okay :) - Costantino Rupertjava.lang.reflect
. - VladD