Please remember
Initially there is no 0th element because the list is empty
Try
if(bulletList.size()>0)
println(bulletList.get(0).location.x);
OR
Or move println inside the if clause {…}
if(mousePressed)
{
bulletList.add(new Bullet());
println(bulletList.get(0).location.x);
}