title: ImageArray not populating when the fields are passed to it
body: <p>So I have an imageArray it finds the 17 fields. But will not populate them to an Array at the end. It says the image array is empty. My debugger shows that the log is populated with 17 fields from the database. But the array fails to include them @</p>
  
  <pre><code>imageArray.add(rn);
  </code></pre>
  
  <p>Java onCreate</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      requestWindowFeature(Window.FEATURE_NO_TITLE);
      getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
              WindowManager.LayoutParams.FLAG_FULLSCREEN);
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_myreceipts);
  
      ReceiptsOperations ro = new ReceiptsOperations(this);
  
      List&lt;Receipt&gt; receipts = ro.getReceipts();
      for(Receipt rn : receipts){
          String log = "RECEIPTID:" + rn.getReceiptID() + "RECEIPTURI:" + rn.getReceiptURI();
  
          Log.d("Result: ", log);
          imageArray.add(rn);
  
      }
  </code></pre>
  
  <p>Receipt List initialised</p>
  
  <pre><code>public List&lt;Receipt&gt;getReceipts() {
      // This code will retrieve all images from database.
      List&lt;Receipt&gt; receiptList = new ArrayList&lt;Receipt&gt;();
      String selectQuery = "SELECT* FROM receipts_table ORDER BY receipt_ID";
      // Check all rows and add to list.
      SQLiteDatabase db = this.getWritableDatabase();
      Cursor cursor = db.rawQuery(selectQuery,null);
      if(cursor.moveToFirst())
      {
          do
          {
              Receipt receipt = new Receipt();
              receipt.setReceiptID(new String(cursor.getString(0)));
              receipt.setReceiptURI(new String(cursor.getString(2)));
              receiptList.add(receipt);
          }
          while(cursor.moveToNext());
      }
  
      db.close();
      return receiptList;
  }
  </code></pre>