You created an array of 'myObject', but never instantiate the objects of that array. You can do so as you loop through the 'bulkReader.length()':



myObject[i] = new myObject();