Finiteness of the injective hull