title: null pointer exception in adding element to list
body: <p>I am getting a nut pointer exception when adding an element to the list.
  Error is System.NullPointerException: Attempt to de-reference a null object on <code>out.add(Time.newInstance(17,00,00,00));</code></p>
  
  <pre><code>public class BusScheduleCache 
  {   //Variable
  private Cache.OrgPartition part;
  
  //Constructor 
  public BusScheduleCache()
  {
      Cache.OrgPartition newobj = Cache.Org.getPartition('local.BusSchedule');
      part = newobj;
  }
  
  //methods
  public void putSchedule(String busLine, Time[] schedule)
  {
      part.put(busline, schedule);
  }
  
  public Time[] getSchedule (String busline)
  {
      Time[] out = new List&lt;Time&gt;();
  
      out = (Time[]) part.get(busline);
      if (out == null)
      {
          out.add(Time.newInstance(8, 00, 00, 00));
          out.add(Time.newInstance(17,00,00,00));
  
      }
  
          return out;
  
  }
  </code></pre>
  
  <p>}</p>