Who thinks the very fact that we have ideas shows that there must be material objects?

Locke. Berkeley thinks he is wrong (and that in Locke's sense of material object there aren't any).