title: removing object from arraylist leaves null
body: <p>I have a function called resolveClash, which I send an array 
  (in this case - combinsFinal) with 2 or more objects in it of type ModuleLecturerStudentCombination (this is my own class). Essentially what the resolveClash function does is it puts the array into an arraylist, removes the first element/object in the array and then returns the list. However, when I inspect the state of the returned value in debug mode (eclipse), it shows that a null value has been added onto the end of the arraylist. </p>
  
  <p>I have looked up "removing objects correctly" etc, however, everything I have tried so far doesn't get rid of the null. The null appears after I perform the remove. I have thoroughly checked that there is not a null being passed in etc. This is a problem because when I use this and iterate through it later, it picks up a null and gives me a nullpointerexception error. Could someone please let me know what I am doing wrong or point me in the right direction?</p>
  
  <p>Thanks in advance!</p>
  
  <p><a href="https://i.stack.imgur.com/OWaab.jpg" rel="nofollow noreferrer">picture displaying problem</a></p>
  
  <pre><code>resolveClash(combinsFinal);
  
  
  public ArrayList &lt;ModuleLecturerStudentCombination&gt; resolveClash(ModuleLecturerStudentCombination[] combinationArr){
      ArrayList&lt;ModuleLecturerStudentCombination&gt; copyCombinationList = new ArrayList&lt;ModuleLecturerStudentCombination&gt;(Arrays.asList(combinationArr));
      copyCombinationList.remove(0);
      return copyCombinationList;
  }   
  </code></pre>