title: NullPointerException with bidimensional Object array
body: <p>I'm  having some problems with Object arrays. I've made up my own object which only has an empty constructor, a constructor which initializes its two instance variables with paramaters and get/set methods.</p>
  
  <p>I initiliaze the array like this:</p>
  
  <pre><code>private Bara[][] card = new Bara[3][4];
  </code></pre>
  
  <p>and I'm trying to fill in the object's variables like this:</p>
  
  <pre><code>for (int i = 0; i &lt; 3; i++) {
      for (int j = 0; j &lt; 4; j++) {
           card[i][j].setName(name);
           card[i][j].setSide(side);
      }
  }  
  </code></pre>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks! </p>