java.lang.NullPointerException
<p>Hey,
so I'm just starting out with java and I'm trying to create an array of Dog class objects and I'm getting this error : </p>

<blockquote>
  <blockquote>
    <p>Exception in thread "main" java.lang.NullPointerException</p>
  </blockquote>
</blockquote>

<p>at this line  :</p>

<blockquote>
  <blockquote>
    <p>Dog[] dogsList = new Dog[7];<br>
    dogsList[4].setSize(4);</p>
  </blockquote>
</blockquote>

<p>please help.</p>
