title: NullPointerException when Creating an Array of objects
body: <p>I have been trying to create an array of a class containing two values, but when I try to apply a value to the array I get a NullPointerException.</p>
  
  <pre><code>public class ResultList {
      public String name;
      public Object value;
  }
  </code></pre>
  
  <p></p>
  
  <pre><code>public class Test {
      public static void main(String[] args){
          ResultList[] boll = new ResultList[5];
          boll[0].name = "iiii";
      }
  }
  </code></pre>
  
  <p>Why am I getting this exception and how can I fix it?</p>