title: Array of JLabel reference
body: <p>I have a problem referencing to the JLabel in the array.
  I've created the array of existing JLabels:</p>
  
  <pre><code> JLabel[] RejestryDlugie = {lA, lB, lC, lD};
  </code></pre>
  
  <p>And when I try to get any information about it (f.e. through the actionlistener)</p>
  
  <pre><code>System.out.println(RejestryDlugie[0].getText());
  </code></pre>
  
  <p>I get an error</p>
  
  <blockquote>
    <p>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException</p>
  </blockquote>