can't access to TextView
问题 I have MainActivite. And I try to set text to TextView tvUserName. Until today everything was Ok, but now I can't access to this variable by findViewById. Value of this variable is null. Maybe it's a wrong code, and it's stopped to work correctly after system libs update. I didn't do anything special, and don't understand what to do. Caused by: java.lang.NullPointerException when I try to set text to this variable private static TextView tvUserName; @Override protected void onCreate(Bundle